summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-08-29 11:40:00 +0000
committerwosch <wosch@FreeBSD.org>1997-08-29 11:40:00 +0000
commit7f839a6925684ef7b7b0a6163e1b08aea13f3527 (patch)
treedf5e9221e27f9720ccd5250e6044ce076b9ab528 /usr.bin
parentcb17d7ed2c29686b7740011b7f6dd4b27c8f8cd4 (diff)
downloadFreeBSD-src-7f839a6925684ef7b7b0a6163e1b08aea13f3527.zip
FreeBSD-src-7f839a6925684ef7b7b0a6163e1b08aea13f3527.tar.gz
du(1) always exit with value zero.
$ du /foobar du: /foobar: No such file or directory $ echo $? 0
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/du/du.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 995860b..8c0724c 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -204,7 +204,7 @@ main(argc, argv)
}
if (errno)
err(1, "fts_read");
- exit(0);
+ exit(rval);
}
typedef struct _ID {
OpenPOWER on IntegriCloud