sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 8c041cd115dba7d89c074751373b13144fca8c7e
parent 2137dfa33494c38d549c59e9204a55a00b04322d
Author: FRIGN <dev@frign.de>
Date:   Wed Feb 18 22:04:32 +0100

Don't terminate du(1) if chdir(2) fails

Diffstat:
du.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/du.c b/du.c @@ -51,7 +51,7 @@ push(const char *path) cwd = agetcwd(); if (chdir(path) < 0) - eprintf("chdir: %s:", path); + weprintf("chdir: %s:", path); return cwd; } @@ -59,7 +59,7 @@ static void pop(char *path) { if (chdir(path) < 0) - eprintf("chdir: %s:", path); + weprintf("chdir: %s:", path); free(path); }