consistent error check

This commit is contained in:
Connor Lane Smith
2011-06-04 12:20:41 +01:00
parent de221bc6f5
commit d90ced2047
13 changed files with 22 additions and 22 deletions

2
rm.c
View File

@@ -36,6 +36,6 @@ rm(const char *path)
{
if(rflag)
recurse(path, rm);
if(remove(path) != 0 && !fflag)
if(remove(path) == -1 && !fflag)
eprintf("remove %s:", path);
}