From ast@marabu.ch  Wed Apr 20 16:24:07 2005
Return-Path: <ast@marabu.ch>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 6F47D16A4CE; Wed, 20 Apr 2005 16:24:07 +0000 (GMT)
Received: from oneplusone.ch (oneplusone.ch [212.55.208.170])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 7BA4843D4C; Wed, 20 Apr 2005 16:24:06 +0000 (GMT)
	(envelope-from ast@marabu.ch)
Received: from oneplusone.ch (localhost [127.0.0.1])
	by oneplusone.ch (8.13.3/8.13.3) with ESMTP id j3KGO45t036055
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 20 Apr 2005 18:24:04 +0200 (CEST)
	(envelope-from ast@marabu.ch)
Received: (from uucp@localhost)
	by oneplusone.ch (8.13.3/8.13.3/Submit) with UUCP id j3KGO4mi036054;
	Wed, 20 Apr 2005 18:24:04 +0200 (CEST)
	(envelope-from ast@marabu.ch)
Received: from pano.marabu.ch (localhost [127.0.0.1])
	by pano.marabu.ch (8.13.3/8.13.3) with ESMTP id j3KGNY1B027167;
	Wed, 20 Apr 2005 18:23:34 +0200 (CEST)
	(envelope-from ast@pano.marabu.ch)
Received: (from ast@localhost)
	by pano.marabu.ch (8.13.3/8.13.3/Submit) id j3KGNXS4027166;
	Wed, 20 Apr 2005 18:23:33 +0200 (CEST)
	(envelope-from ast)
Message-Id: <200504201623.j3KGNXS4027166@pano.marabu.ch>
Date: Wed, 20 Apr 2005 18:23:33 +0200 (CEST)
From: Adrian Steinmann <ast@marabu.ch>
Reply-To: Adrian Steinmann <ast@marabu.ch>
To: FreeBSD-gnats-submit@freebsd.org
Cc: dfr@freebsd.org
Subject: rtld(1) mentions "%m" but it's not implemented
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80159
>Category:       docs
>Synopsis:       [patch] rtld(1) mentions "%m" but it's not implemented
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dfr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 20 16:30:22 GMT 2005
>Closed-Date:    Sat May 12 22:46:13 GMT 2007
>Last-Modified:  Sat May 12 22:46:13 GMT 2007
>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@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:
Responsible-Changed-From-To: freebsd-i386->freebsd-doc 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Apr 22 12:41:56 GMT 2005 
Responsible-Changed-Why:  
Patch to a manpage -> over to freebsd-doc 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80159 
Responsible-Changed-From-To: freebsd-doc->dfr 
Responsible-Changed-By: ru 
Responsible-Changed-When: Sun Oct 22 17:16:40 UTC 2006 
Responsible-Changed-Why:  
Doug, can you take care of this PR please? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80159 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sat May 12 22:45:39 UTC 2007 
State-Changed-Why:  
Manpage reference was removed, thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80159 
>Unformatted:
