Source-Changes archive

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

sun-lamp CVS commits



jtc
Wed Nov  2 08:17:17 PST 1994
Update of /b/source/CVS/src/bin/rm
In directory sun-lamp.cs.berkeley.edu:/c/users/jtc/src/rm

Modified Files:
        rm.c 
Log Message:
Strip trailing slashes of operands in checkdot().

POSIX.2 requires that if "." or ".." are specified as the basename
portion of an operand, a diagnostic message be written to standard 
error, etc.  We strip the slashes because POSIX.2 defines basename
as the final portion of a pathname after trailing slashes have been
removed.

This also makes rm "perform actions equivalent to" the POSIX.1
rmdir() and unlink() functions when removing directories and files, 
even when they do not follow POSIX.1's pathname resolution semantics
(which require trailing slashes be ignored).




Home | Main Index | Thread Index | Old Index