Stop using EXIT_{SUCCESS,FAILURE}
This commit is contained in:
4
chown.c
4
chown.c
@@ -13,7 +13,7 @@ static void chownpwgr(const char *);
|
||||
static bool rflag = false;
|
||||
static struct passwd *pw = NULL;
|
||||
static struct group *gr = NULL;
|
||||
static int ret = EXIT_SUCCESS;
|
||||
static int ret = 0;
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
@@ -76,7 +76,7 @@ chownpwgr(const char *path)
|
||||
if(chown(path, pw ? pw->pw_uid : (uid_t)-1,
|
||||
gr ? gr->gr_gid : (gid_t)-1) == -1) {
|
||||
weprintf("chown %s:", path);
|
||||
ret = EXIT_FAILURE;
|
||||
ret = 1;
|
||||
}
|
||||
if(rflag)
|
||||
recurse(path, chownpwgr);
|
||||
|
Reference in New Issue
Block a user