diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-05 12:38:16 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-05 12:38:16 +0200 |
commit | 455a4cd65269272a8e11a50d1242b36b2163e2de (patch) | |
tree | 8f67dd2271464182ba1ce88b0c3d4ca55476a649 /lib/fsm.c | |
parent | 1f5d9dff73cd8ea0ee0c6ff1e843c99c78f9c38d (diff) | |
download | rpm-455a4cd65269272a8e11a50d1242b36b2163e2de.tar.gz rpm-455a4cd65269272a8e11a50d1242b36b2163e2de.tar.bz2 rpm-455a4cd65269272a8e11a50d1242b36b2163e2de.zip |
Remove useless rpmfi->gid and uid "defaults"
- they were only ever set on src.rpm installation yet overridden by
package contents unless src.rpm didn't contain RPMTAG_FILEUSERNAME
(and GROUP). Which would mean rpm 1.0 packages or thereabouts, or a
malformed package. In that case we just fall back to root uid,
it hardly matters
Diffstat (limited to 'lib/fsm.c')
-rw-r--r-- | lib/fsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -722,8 +722,8 @@ static int fsmMapAttrs(FSM_t fsm) mode_t finalMode = (fi->fmodes ? fi->fmodes[i] : perms); dev_t finalRdev = (fi->frdevs ? fi->frdevs[i] : 0); rpm_time_t finalMtime = (fi->fmtimes ? fi->fmtimes[i] : 0); - uid_t uid = fi->uid; - gid_t gid = fi->gid; + uid_t uid = 0; + gid_t gid = 0; if (fi->fuser && unameToUid(fi->fuser[i], &uid)) { if (fsm->goal == FSM_PKGINSTALL) |