sbase

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

commit f4885477798bae97ed112ebd6a4b4a0ed8e61be1
parent b700d5a8ed5090ccd3454485805111357c326daf
Author: sin <sin@2f30.org>
Date:   Tue Apr 22 12:11:46 +0100

Don't bail out if chmod(2) or chown(2) fails

Keep processing all the files specified.

Diffstat:
chmod.c | 2+-
chown.c | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/chmod.c b/chmod.c @@ -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 @@ -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); } -