schilling at fokus.gmd.de
Fri Jan 4 06:55:22 PST 2002
>From kukuk at suse.de Fri Jan 4 15:44:41 2002
>On Fri, Jan 04, Joerg Schilling wrote:
>> My question was:
>> "How could a standard compliance test find out that GNU rm includes a nonstandard
>> option that gives GNU rm properties that are not allowed from SUSv2?"
>Where is the problem? You don't use this nonstandard option and
>everything is ok. There is no rule that a software is not allowed
>to have more options than specified in the LSB. So you don't need
>to check, if software can do more, you only need to check that
>software can do that, what the spec requires and don't do things,
>which are explicit forbidden.
Please READ the standard before you try to find arguments!
The standard says that the rm command has to use the rmdir() behavior in
order to remove directories.
As - if you are root- you may unlink a non-empty diretory using GNUrm -d
- a behavior that is not compliant with the general rules for the
- a risk fot the data integrity of the machine
If you call GNUrm -d on a non-empty directory you need to run fsck later to move
the orhpaned files into lost+found. As this is nothing you should really like
this behavior is reserved to the SUSv2 command "unlink" - you will not by chance
of a typo call unlink <dir> instead of rm <dir>
Check your keyboard: the letter "d" and the letter "f" are close to each other.
EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling at fokus.gmd.de (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix
More information about the lsb-discuss