summaryrefslogtreecommitdiff
path: root/rpmio/ugid.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2004-10-09 17:29:22 +0000
committerjbj <devnull@localhost>2004-10-09 17:29:22 +0000
commitb831315e41173e27a4e402c65d318b43558c4fca (patch)
tree4d8b5816ed2c4a51657bb698320cfd62761c29d0 /rpmio/ugid.c
parentd8822ba626caea60e6310157c1a180cde16bfe0a (diff)
downloadrpm-b831315e41173e27a4e402c65d318b43558c4fca.tar.gz
rpm-b831315e41173e27a4e402c65d318b43558c4fca.tar.bz2
rpm-b831315e41173e27a4e402c65d318b43558c4fca.zip
Splint fiddles.
CVS patchset: 7435 CVS date: 2004/10/09 17:29:22
Diffstat (limited to 'rpmio/ugid.c')
-rw-r--r--rpmio/ugid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpmio/ugid.c b/rpmio/ugid.c
index 65d31bcbd..b9a0898c2 100644
--- a/rpmio/ugid.c
+++ b/rpmio/ugid.c
@@ -103,11 +103,15 @@ int gnameToGid(const char * thisGname, gid_t * gid)
if (grent == NULL) {
/* XXX The filesystem package needs group/lock w/o getgrnam. */
if (strcmp(thisGname, "lock") == 0) {
+/*@-boundswrite@*/
*gid = lastGid = 54;
+/*@=boundswrite@*/
return 0;
} else
if (strcmp(thisGname, "mail") == 0) {
+/*@-boundswrite@*/
*gid = lastGid = 12;
+/*@=boundswrite@*/
return 0;
} else
return -1;