Subject: sun-lamp CVS commits
To: None <source-changes@sun-lamp.cs.berkeley.edu>
From: The Source Master <srcmastr@NetBSD.ORG>
List: source-changes
Date: 11/02/1994 08:20:03
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).