+2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/groupmems.c: Use xstrdup() rather than strdup().
+
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
* src/groupmems.c: Add parenthesis.
struct passwd *usr = getpwuid (getuid ());
if (0 == strcmp (usr->pw_name, grp->gr_name)) {
- return strdup (usr->pw_name);
+ return xstrdup (usr->pw_name);
} else {
return NULL;
}
&option_index)) != EOF) {
switch (arg) {
case 'a':
- adduser = strdup (optarg);
+ adduser = xstrdup (optarg);
++exclusive;
break;
case 'd':
- deluser = strdup (optarg);
+ deluser = xstrdup (optarg);
++exclusive;
break;
case 'p':
++exclusive;
break;
case 'g':
- thisgroup = strdup (optarg);
+ thisgroup = xstrdup (optarg);
break;
case 'l':
list = true;