freebsd-skq/bin/rm
dougb a6ef64df7a Handle the case where the -P flag is specified for a read-only file
earlier, and more gracefully. Previously, this combination would be
ignored early in the code where permissions are tested and fail later
with a very unhelpful "permission denied" error.

Instead, test for this flag in the same block that generates the
"override?" messages for read-only files, but instead of trying
to guess what the user has in mind, generate an error and exit.

Update the man page to reflect this new behavior.

Not objected to by:	freebsd-hackers@
2005-09-29 20:40:29 +00:00
..
Makefile Remove unnecessary SRCS= where could be guessed directly by our 2005-01-27 14:52:47 +00:00
rm.1 Handle the case where the -P flag is specified for a read-only file 2005-09-29 20:40:29 +00:00
rm.c Handle the case where the -P flag is specified for a read-only file 2005-09-29 20:40:29 +00:00