projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a89ecd2
)
du(1): Move the fts_close() behind fts_read()'s errno check.
author
Sascha Wildner <saw@online.de>
Sat, 3 Dec 2011 09:39:06 +0000 (10:39 +0100)
committer
Sascha Wildner <saw@online.de>
Sat, 3 Dec 2011 09:39:06 +0000 (10:39 +0100)
usr.bin/du/du.c
patch
|
blob
|
blame
|
history
diff --git
a/usr.bin/du/du.c
b/usr.bin/du/du.c
index
a729ef5
..
62c8396
100644
(file)
--- a/
usr.bin/du/du.c
+++ b/
usr.bin/du/du.c
@@
-279,11
+279,12
@@
main(int argc, char **argv)
if (p->fts_parent->fts_pointer)
savednumber = *(du_number_t *)p->fts_parent->fts_pointer;
}
- fts_close(fts);
if (errno)
err(1, "fts_read");
+ fts_close(fts);
+
if (cflag) {
if (hflag) {
(void) prthumanval(howmany(savednumber, blocksize));