ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 90ad27b025f5e8fd5c2acb20a1cb3461ffe3b521
parent e6ab1dcb941f60fc80d5763f93ba8146c5532543
Author: sin <sin@2f30.org>
Date:   Tue Feb 16 15:19:25 +0000

df: Don't scream if statvfs() fails

Diffstat:
df.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/df.c b/df.c @@ -60,10 +60,8 @@ mnt_show(const char *fsname, const char *dir) int capacity = 0; int bs; - if (statvfs(dir, &s) < 0) { - weprintf("statvfs %s:", dir); + if (statvfs(dir, &s) < 0) return -1; - } bs = s.f_frsize / blksize; total = s.f_blocks * bs; @@ -138,4 +136,4 @@ main(int argc, char *argv[]) endmntent(fp); return ret; -}- \ No newline at end of file +}