Lines Matching refs:entry
40 char *entry = NULL;
52 entry = xmprintf("%s:%s:%ld:", *toys.optargs, "x", TT.gid);
53 update_password(GROUP_PATH, *toys.optargs, entry);
54 free(entry);
55 entry = xmprintf("%s:%s::", *toys.optargs, "!");
56 update_password(SECURE_GROUP_PATH, *toys.optargs, entry);
57 free(entry);
63 char *entry = NULL;
73 if (!grp->gr_mem) entry = xmprintf("%s", *toys.optargs);
80 entry = xstrdup("");
82 entry = xrealloc(entry, strlen(entry) + strlen(grp->gr_mem[i]) + 2);
83 strcat(entry, grp->gr_mem[i]);
84 strcat(entry, ",");
86 entry = xrealloc(entry, strlen(entry) + strlen(*toys.optargs) + 1);
87 strcat(entry, *toys.optargs);
89 update_password(GROUP_PATH, grp->gr_name, entry);
90 update_password(SECURE_GROUP_PATH, grp->gr_name, entry);
91 free(entry);