]> TLD Linux GIT Repositories - packages/rpm.git/blob - rpm-gid-uucp.patch
765adf07494ffd0a0d7a7073cbf37b16dd179309
[packages/rpm.git] / rpm-gid-uucp.patch
1 --- rpm-4.5/rpmio/ugid.c        2009-06-05 00:46:30.450894061 +0300
2 +++ rpm-4.5/rpmio/ugid.c        2009-06-19 19:35:42.374530092 +0300
3 @@ -101,10 +101,10 @@
4             /*@=internalglobs@*/
5             grent = getgrnam(thisGname);
6             if (grent == NULL) {
7 -               /* XXX The filesystem package needs group/lock w/o getgrnam. */
8 -               if (strcmp(thisGname, "lock") == 0) {
9 +               /* XXX The FHS package needs group/uucp w/o getgrnam, filesystem needs adm */
10 +               if (strcmp(thisGname, "uucp") == 0) {
11  /*@-boundswrite@*/
12 -                   *gid = lastGid = 54;
13 +                   *gid = lastGid = 14;
14  /*@=boundswrite@*/
15                     return 0;
16                 } else
17 @@ -114,6 +114,12 @@
18  /*@=boundswrite@*/
19                     return 0;
20                 } else
21 +               if (strcmp(thisGname, "adm") == 0) {
22 +/*@-boundswrite@*/
23 +                   *gid = lastGid = 4;
24 +/*@=boundswrite@*/
25 +                   return 0;
26 +               } else
27                 return -1;
28             }
29         }