Subject: misc/21251: rcorder and rc scripts without "special lines"
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 04/21/2003 08:21:55
>Number:         21251
>Category:       misc
>Synopsis:       rcorder and rc scripts without "special lines"
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 21 15:22:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
	
System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
I ran rcorder on a rc.d directory with various scripts that
didn't have any of these special lines. It still listed the scripts (so I
guess it attempted to order them).

The rcorder(8) man page says: "Each file passed to rcorder must be
annotated with special lines". Notice that it says "must".

And the documentation says that each file must contain REQUIRE, PROVIDE,
BEFORE, and KEYWORD lines. I think "must" should be replaced with "should"
or "could".

The man page also says it may contain zero PROVIDE lines and zero REQUIRE
lines. I think that it should not say "and". Is it okay if a file doesn't
contain both PROVIDE and REQUIRE?
>How-To-Repeat:
Run rcorder on a directory with files that do not provide the special
lines.
>Fix:
Fix the manual page so that it says the file should contain (instead
of must).

Fix the manual page so it says the file may contain  zero PROVIDE lines
*or* zero REQUIRE lines. Or fix it so this is understandable.

And fix the rcorder tool so it doesn't output names of files
that do not contain the special lines.

Sorry I do not provide a fix. I asked about this on tech-userlevel
a few weeks ago but no response. I don't want to provide a fix
since I don't know what the expected behavior or correct
documentation for these items should be.
>Release-Note:
>Audit-Trail:
>Unformatted: