From simon@comsys.ntu-kpi.kiev.ua  Thu Jun 19 04:05:23 2003
Return-Path: <simon@comsys.ntu-kpi.kiev.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 94FA237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Jun 2003 04:05:23 -0700 (PDT)
Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E9AB943FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Jun 2003 04:05:18 -0700 (PDT)
	(envelope-from simon@comsys.ntu-kpi.kiev.ua)
Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184])
	by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 01CA619E75
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Jun 2003 14:05:14 +0300 (EEST)
Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109])
	by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h5JBA8U04354
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Jun 2003 14:10:08 +0300 (EEST)
Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000)
	id C24D81FC; Thu, 19 Jun 2003 14:04:44 +0300 (EEST)
Message-Id: <20030619110444.GA236@pm514-9.comsys.ntu-kpi.kiev.ua>
Date: Thu, 19 Jun 2003 14:04:44 +0300
From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Mistake in the strmode(3) manual page

>Number:         53488
>Category:       docs
>Synopsis:       Mistake in the strmode(3) manual page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    maxim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 19 04:10:10 PDT 2003
>Closed-Date:    Tue Jul 08 03:00:21 PDT 2003
>Last-Modified:  Tue Jul 08 03:00:21 PDT 2003
>Originator:     Andrey Simonenko
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:

FreeBSD 4.8-STABLE and FreeBSD 5.1-RELEASE

>Description:

	There is a mistake in the ``RETURN VALUES'' section
	in the strmode(3) manual page:
	
RETURN VALUES
     The strmode() function always returns 0.

	But strmode(3) is declared as:

void
strmode(mode_t mode, char *bp);

	so, it returns no value.

>How-To-Repeat:

Simply remove the ``RETURN VALUES'' section.

>Fix:
--- strmode.3.orig	Fri Dec 14 20:33:59 2001
+++ strmode.3	Thu Jun 19 12:16:43 2003
@@ -135,11 +135,6 @@
 The last character is a plus sign ``+'' if any there are any alternate
 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 ,
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Tue Jul 1 08:30:55 PDT 2003 
State-Changed-Why:  
Fixed in -CURRENT, thanks! 


Responsible-Changed-From-To: freebsd-doc->maxim 
Responsible-Changed-By: maxim 
Responsible-Changed-When: Tue Jul 1 08:30:55 PDT 2003 
Responsible-Changed-Why:  
MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53488 
State-Changed-From-To: patched->closed 
State-Changed-By: maxim 
State-Changed-When: Tue Jul 8 02:59:36 PDT 2003 
State-Changed-Why:  
Fixed in -STABLE too. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53488 
>Unformatted:
 To: FreeBSD-gnats-submit@freebsd.org
 From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
 Reply-To: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
 Cc: 
 X-send-pr-version: 3.113
 X-GNATS-Notify: 
 
 
