fix error exit codes

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18707 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2006-08-30 10:06:19 +00:00
parent 86cebbca83
commit 383b5f4303
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ usage()
"\t'attr' is the name of an attribute of the file\n"
"\tIf '-p' is specified, 'attr' is regarded as a pattern.\n", kProgramName);
exit(0);
exit(1);
}
@@ -110,7 +110,7 @@ main(int32 argc, const char **argv)
if (fd < 0) {
fprintf(stderr, "%s: can\'t open file %s to remove attribute: %s\n",
kProgramName, argv[i], strerror(errno));
return 0;
return 1;
}
if (remove_attribute(fd, argv[attr], isPattern) != B_OK) {