diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-12-14 12:51:12 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-12-14 12:51:12 +0200 |
commit | a26848218cfdefd0f8ee538a14a57c9fea4e7b2d (patch) | |
tree | 6d6354cd2002e2ec961d2de147de49e5064cee82 | |
parent | e40a7c61c422e79838226c69cb84f7a624fa6127 (diff) | |
download | librpm-tizen-a26848218cfdefd0f8ee538a14a57c9fea4e7b2d.tar.gz librpm-tizen-a26848218cfdefd0f8ee538a14a57c9fea4e7b2d.tar.bz2 librpm-tizen-a26848218cfdefd0f8ee538a14a57c9fea4e7b2d.zip |
Remove hardcoded lock and mail group id's
- Rpm has no business making assumptions about arbitrary group id's,
if these are not available through getgrname() when needed,
that's a packaging problem.
-rw-r--r-- | lib/misc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/misc.c b/lib/misc.c index 1f2033f18..03b59f51f 100644 --- a/lib/misc.c +++ b/lib/misc.c @@ -112,15 +112,6 @@ static char * lastGname = NULL; endgrent(); grent = getgrnam(thisGname); if (grent == NULL) { - /* XXX The filesystem package needs group/lock w/o getgrnam. */ - if (rstreq(thisGname, "lock")) { - *gid = lastGid = 54; - return 0; - } else - if (rstreq(thisGname, "mail")) { - *gid = lastGid = 12; - return 0; - } else return -1; } } |