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:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user