[hackers] [sbase] Don't terminate du(1) if chdir(2) fails || FRIGN

From: <git_AT_suckless.org>
Date: Wed, 18 Feb 2015 22:07:05 +0100 (CET)

commit a78ae62218c32698fdf138cc6261d1e665e8f4fd
Author: FRIGN <dev_AT_frign.de>
Date: Wed Feb 18 22:04:32 2015 +0100

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

diff --git a/du.c b/du.c
index 1617801..56b4b9f 100644
--- a/du.c
+++ b/du.c
_AT_@ -51,7 +51,7 @@ push(const char *path)
 
         cwd = agetcwd();
         if (chdir(path) < 0)
- eprintf("chdir: %s:", path);
+ weprintf("chdir: %s:", path);
         return cwd;
 }
 
_AT_@ -59,7 +59,7 @@ static void
 pop(char *path)
 {
         if (chdir(path) < 0)
- eprintf("chdir: %s:", path);
+ weprintf("chdir: %s:", path);
         free(path);
 }
 
Received on Wed Feb 18 2015 - 22:07:05 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 18 2015 - 22:12:08 CET