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

View File

@@ -53,7 +53,7 @@ main(int argc, char *argv[])
void
chmodr(const char *path)
{
if(chmod(path, mode) != 0)
if(chmod(path, mode) == -1)
eprintf("chmod %s:", path);
if(rflag)
recurse(path, chmodr);