search for: map_gid

Displaying 1 result from an estimated 1 matches for "map_gid".

Did you mean: mail_gid
2004 Apr 28
1
Bug in 2.6.1
I'm not sure what the code is trying to do, but the SGI Irix compiler spotted this usage of an undefined variable. In uidlist.c: ======= static int map_uid(int id, char *name) { uid_t uid; if (uid != 0 && name_to_uid(name, &uid)) return uid; return id; } static int map_gid(int id, char *name) { gid_t gid; if (gid != 0 && name_to_gid(name, &gid)) return gid; return id; } ======= Both uid (in map_uid) and gid (in map_gid) are used (tested against 0) without being defined. If these are dynamic variables they should be initilaized first, but...