Subject: CVS commit: src/bin/rm
To: None <>
From: Liam J. Foy <>
List: source-changes
Date: 08/25/2006 11:00:40
Module Name:	src
Committed By:	liamjfoy
Date:		Fri Aug 25 11:00:40 UTC 2006

Modified Files:
	src/bin/rm: rm.c

Log Message:
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
carpy: {14} rm -P moo
rm: moo: -P was specified but file could not be overwritten
carpy: {15} ls
carpy: {16}

ok: christos@, joerg@ & tech-userlevel@

To generate a diff of this commit:
cvs rdiff -r1.44 -r1.45 src/bin/rm/rm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.