diff options
author | Eric Andersen | 1999-10-13 18:01:10 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-13 18:01:10 +0000 |
commit | c6cb79dedfb1af4ce64e75cd1c0d3cc1bfa71225 (patch) | |
tree | 685c18e7a6e52b315c9b8a142b8b21fc55e635fc /postprocess.c | |
parent | 5de3065f5870526a68adee314fe181af976a9246 (diff) | |
download | busybox-c6cb79dedfb1af4ce64e75cd1c0d3cc1bfa71225.zip busybox-c6cb79dedfb1af4ce64e75cd1c0d3cc1bfa71225.tar.gz |
More stuff
Diffstat (limited to 'postprocess.c')
-rw-r--r-- | postprocess.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/postprocess.c b/postprocess.c deleted file mode 100644 index bbc87e6..0000000 --- a/postprocess.c +++ /dev/null @@ -1,41 +0,0 @@ -#include "internal.h" - -extern int -post_process(const struct FileInfo * i) -{ - int status = 0; - - if ( i->destination == 0 || *i->destination == 0 ) - return 0; - - if ( status == 0 && i->changeMode ) { - mode_t mode = i->stat.st_mode & 07777; - mode &= i->andWithMode; - mode |= i->orWithMode; - status = chmod(i->destination, mode); - - if ( status != 0 && i->complainInPostProcess && !i->force ) { - name_and_error(i->destination); - return 1; - } - } - - if ( i->changeUserID || i->changeGroupID ) { - uid_t uid = i->stat.st_uid; - gid_t gid = i->stat.st_gid; - - if ( i->changeUserID ) - uid = i->userID; - if ( i->changeGroupID ) - gid = i->groupID; - - status = chown(i->destination, uid, gid); - - if ( status != 0 && i->complainInPostProcess && !i->force ) { - name_and_error(i->destination); - return 1; - } - } - - return status; -} |