[hackers] [sbase] Don't bail out if chmod(2) or chown(2) fails || sin

From: <git_AT_suckless.org>
Date: Tue, 22 Apr 2014 14:46:31 +0200

commit f4885477798bae97ed112ebd6a4b4a0ed8e61be1
Author: sin <sin_AT_2f30.org>
Date: Tue Apr 22 12:11:46 2014 +0100

    Don't bail out if chmod(2) or chown(2) fails
    
    Keep processing all the files specified.

diff --git a/chmod.c b/chmod.c
index 901363e..ddda633 100644
--- a/chmod.c
+++ b/chmod.c
_AT_@ -77,7 +77,7 @@ chmodr(const char *path)
                 break;
         }
         if(chmod(path, st.st_mode) == -1)
- eprintf("chmod %s:", path);
+ weprintf("chmod %s:", path);
         if(rflag)
                 recurse(path, chmodr);
 }
diff --git a/chown.c b/chown.c
index 0455c22..245eb2e 100644
--- a/chown.c
+++ b/chown.c
_AT_@ -70,8 +70,7 @@ chownpwgr(const char *path)
 {
         if(chown(path, pw ? pw->pw_uid : (uid_t)-1,
                        gr ? gr->gr_gid : (gid_t)-1) == -1)
- eprintf("chown %s:", path);
+ weprintf("chown %s:", path);
         if(rflag)
                 recurse(path, chownpwgr);
 }
-
Received on Tue Apr 22 2014 - 14:46:31 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 22 2014 - 14:48:08 CEST