i386/80159: rtld(1) mentions "%m" but it's not implemented

Adrian Steinmann ast at marabu.ch
Wed Apr 20 09:30:23 PDT 2005


>Number:         80159
>Category:       i386
>Synopsis:       rtld(1) mentions "%m" but it's not implemented
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 20 16:30:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Steinmann
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
Webgroup Consulting AG
>Environment:
System: FreeBSD pano.marabu.ch 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Apr 16 16:07:34 CEST 2005 root at pano.marabu.ch:/r/usr/obj/usr/src/sys/PANO i386


	
>Description:
	man rtld mentions a "%m" format string for major shared object
	version, but that is not implemented.
>How-To-Repeat:
	man rtld
>Fix:


--- rtld-elf/rtld.1.orig        Wed Apr 20 08:46:24 2005
+++ rtld-elf/rtld.1     Wed Apr 20 08:46:37 2005
@@ -164,8 +164,6 @@
 .Ev LD_TRACE_LOADED_OBJECTS_PROGNAME
 .It Li %o
 The library name.
-.It Li %m
-The library's major version number.
 .It Li %p
 The full pathname as determined by
 .Nm rtld Ns 's

This info - and the "undocumented" %n for minor version - are
commented out of the source (maybe those lines should be removed
altogether):

$ grep -n -A10 'if 0' /usr/src/libexec/rtld-elf/rtld.c
2410:#if 0
2411-               case 'm':
2412-                   printf("%d", sodp->sod_major);
2413-                   break;
2414-               case 'n':
2415-                   printf("%d", sodp->sod_minor);
2416-                   break;
2417-#endif
2418-               case 'p':
2419-                   printf("%s", path);
2420-                   break;

Adrian
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-i386 mailing list