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
@@ -143,7 +143,7 @@ main(int argc, char **argv)
|
||||
if (device < 0) {
|
||||
fprintf(stderr, "%s: could not find device: %s\n", __progname,
|
||||
strerror(errno));
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
mode = kFilterDevice;
|
||||
if (argv[1][1] == 'D')
|
||||
@@ -154,7 +154,7 @@ main(int argc, char **argv)
|
||||
if (::stat(argv[2], &stat) < 0) {
|
||||
fprintf(stderr, "%s: could not open file: %s\n", __progname,
|
||||
strerror(errno));
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
device = stat.st_dev;
|
||||
node = stat.st_ino;
|
||||
|
||||
Reference in New Issue
Block a user