[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LSB1.1: /proc/cpuinfo



>From kukuk@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 
this is

-	a behavior that is not compliant with the general rules for the
	rm program.

-	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.

Jörg

 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@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



Reply to: