commit 8c041cd115dba7d89c074751373b13144fca8c7e
parent 2137dfa33494c38d549c59e9204a55a00b04322d
Author: FRIGN <dev@frign.de>
Date: Wed, 18 Feb 2015 22:04:32 +0100
Don't terminate du(1) if chdir(2) fails
Diffstat:
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);
}