Subject: lib/3999: bugs in strmode man page
To: None <gnats-bugs@gnats.netbsd.org>
From: Krister Walfridsson <cato@ulysses.df.lth.se>
List: netbsd-bugs
Date: 08/17/1997 21:02:53
>Number:         3999
>Category:       lib
>Synopsis:       bugs in strmode man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 17 12:05:01 1997
>Last-Modified:
>Originator:     Krister Walfridsson
>Organization:
	
>Release:        NetBSD-current Aug 15 1997
>Environment:
	
System: NetBSD ulysses 1.2G NetBSD 1.2G (KWA) #0: Fri Aug 15 20:36:02 CEST 1997 cato@ulysses:/usr/src/sys/arch/sparc/compile/KWA sparc


>Description:
Strmode is declared as void, but its man page says it returns 0.

My 4.4BSD Programmer's Reference Manual claims that strmode was
present in 4.4BSD, so the History section should be updated.

There's a grammatical error.

>How-To-Repeat:
	
>Fix:
diff -u strmode.old strmode.3
--- strmode.old Sat Aug 16 18:50:24 1997
+++ strmode.3   Sun Aug 17 20:36:14 1997
@@ -130,14 +130,9 @@
 None of the above apply.
 .El
 .Pp
-The last character is a plus sign ``+'' if any there are any alternative
+The last character is a plus sign ``+'' if there are any alternative
 or additional access control methods associated with the inode, otherwise
 it will be a space.
-.Sh RETURN VALUES
-The
-.Fn strmode
-function
-always returns 0.
 .Sh SEE ALSO
 .Xr chmod 1 ,
 .Xr find 1 ,
@@ -147,5 +142,4 @@
 .Sh HISTORY
 The
 .Fn strmode
-function
-.Ud .
+function first appeared in 4.4BSD.

>Audit-Trail:
>Unformatted: