Bug 80159

Summary: [patch] rtld(1) mentions "%m" but it's not implemented
Product: Documentation Reporter: Adrian Steinmann <ast>
Component: Books & ArticlesAssignee: dfr
Status: Closed FIXED    
Severity: Affects Only Me CC: dfr
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Adrian Steinmann 2005-04-20 17:30:22 UTC
	man rtld mentions a "%m" format string for major shared object
	version, but that is not implemented.

Fix: 

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--ItjExN4CXLB0ZkYtqhWiGYRzCTh67xkzMkkITnAyNh2YQLW4
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: 	man rtld
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2005-04-22 13:41:56 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-doc

Patch to a manpage -> over to freebsd-doc
Comment 2 ru freebsd_committer freebsd_triage 2006-10-22 18:16:40 UTC
Responsible Changed
From-To: freebsd-doc->dfr

Doug, can you take care of this PR please?
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2007-05-12 23:45:39 UTC
State Changed
From-To: open->closed

Manpage reference was removed, thanks for the report!