summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-08-31 15:39:37 +0000
committerjbj <devnull@localhost>2004-08-31 15:39:37 +0000
commitdd17e87985c3fd2e76fc122c9dc01159fc8f11b9 (patch)
tree656b19b380900bb62db1029f718e1812b8a78884 /rpmio
parentce2ad5848a52c6ea96e8a29fb8eb40e314b25ccf (diff)
downloadlibrpm-tizen-dd17e87985c3fd2e76fc122c9dc01159fc8f11b9.tar.gz
librpm-tizen-dd17e87985c3fd2e76fc122c9dc01159fc8f11b9.tar.bz2
librpm-tizen-dd17e87985c3fd2e76fc122c9dc01159fc8f11b9.zip
- ia64: auto-relocate entire, not partial, directory contents (#126905).
- ia64: auto-relocate glibc.ix86 interpreter path (#100563). - shared libraries in separate rpm-libs package. - fix: defattr for rpm-libs (#130461). - fix: static glibc/libgcc helpers always installed (#127522). - ia64: make sure that autorelocated file dependencies are satisfied. - ia64: relocate all scriptlet interpreters. - ia64: don't bother trying to preload autorelocated modules. - fix: filesystem package needs mail/lock w/o getgrnam. - fix: do getpwnam/getgrnam to load correct modules before chroot. CVS patchset: 7415 CVS date: 2004/08/31 15:39:37
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/ugid.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/rpmio/ugid.c b/rpmio/ugid.c
index 697574a27..65d31bcbd 100644
--- a/rpmio/ugid.c
+++ b/rpmio/ugid.c
@@ -100,7 +100,18 @@ int gnameToGid(const char * thisGname, gid_t * gid)
endgrent();
/*@=internalglobs@*/
grent = getgrnam(thisGname);
- if (grent == NULL) return -1;
+ if (grent == NULL) {
+ /* XXX The filesystem package needs group/lock w/o getgrnam. */
+ if (strcmp(thisGname, "lock") == 0) {
+ *gid = lastGid = 54;
+ return 0;
+ } else
+ if (strcmp(thisGname, "mail") == 0) {
+ *gid = lastGid = 12;
+ return 0;
+ } else
+ return -1;
+ }
}
lastGid = grent->gr_gid;
}