From c6cb79dedfb1af4ce64e75cd1c0d3cc1bfa71225 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 13 Oct 1999 18:01:10 +0000 Subject: More stuff --- postprocess.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 postprocess.c (limited to 'postprocess.c') diff --git a/postprocess.c b/postprocess.c deleted file mode 100644 index bbc87e689..000000000 --- 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; -} -- cgit v1.2.3