NetBSD/bin/rm
liamjfoy c9432db8c8 Only remove the file if the file can be successfully
overwritten. Old code would remove the file regardless of
whether the overwrite was successful or not.

New behaviour:

carpy: {12} touch moo ; chmod 444 moo
carpy: {13} ls
moo
carpy: {14} rm -P moo
rm: moo: -P was specified but file could not be overwritten
carpy: {15} ls
moo
carpy: {16}

ok: christos@, joerg@ & tech-userlevel@
2006-08-25 11:00:40 +00:00
..
Makefile
rm.1 Sort sections, bump date for previous, and add a comma after e.g.. 2004-03-24 11:37:07 +00:00
rm.c Only remove the file if the file can be successfully 2006-08-25 11:00:40 +00:00