diff options
author | jbj <devnull@localhost> | 2003-12-27 01:50:30 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-12-27 01:50:30 +0000 |
commit | 016206e42e864e761ea3c05c8f3c74d97bb9d2d9 (patch) | |
tree | b8fbdfee3385b7253c483d22cde9d2d33fddfea6 | |
parent | 59f6e1d78fd5eba67116d889c452fd2250b4c165 (diff) | |
download | rpm-016206e42e864e761ea3c05c8f3c74d97bb9d2d9.tar.gz rpm-016206e42e864e761ea3c05c8f3c74d97bb9d2d9.tar.bz2 rpm-016206e42e864e761ea3c05c8f3c74d97bb9d2d9.zip |
Warn only if installing.
CVS patchset: 7025
CVS date: 2003/12/27 01:50:30
-rw-r--r-- | lib/fsm.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -761,15 +761,18 @@ int fsmMapAttrs(FSM_t fsm) gid_t gid = fi->gid; if (fi->fuser && unameToUid(fi->fuser[i], &uid)) { - rpmMessage(RPMMESS_WARNING, - _("user %s does not exist - using root\n"), fi->fuser[i]); + if (fsm->goal == FSM_PKGINSTALL) + rpmMessage(RPMMESS_WARNING, + _("user %s does not exist - using root\n"), fi->fuser[i]); uid = 0; finalMode &= ~S_ISUID; /* turn off suid bit */ } if (fi->fgroup && gnameToGid(fi->fgroup[i], &gid)) { - rpmMessage(RPMMESS_WARNING, - _("group %s does not exist - using root\n"), fi->fgroup[i]); + if (fsm->goal == FSM_PKGINSTALL) + rpmMessage(RPMMESS_WARNING, + _("group %s does not exist - using root\n"), fi->fgroup[i]); + gid = 0; finalMode &= ~S_ISGID; /* turn off sgid bit */ } |