Lines Matching defs:homedir
58 const char *homedir, const char *shell)
70 argp->key.name, "x", uid, gid, gecos, homedir, shell) + 1;
75 name, domain, "x", uid, gid, gecos, homedir, shell) + 1;
93 argp->key.name, "x", uid, gid, gecos, homedir, shell);
96 name, domain, "x", uid, gid, gecos, homedir, shell);
116 process_homedir(char *homedir)
122 len = strlen(homedir);
124 if (strchr(homedir, ':') != NULL)
131 if (!(len > 1 && homedir[0] == '\\' && homedir[1] == '\\'))
132 /* Keep homedir intact if not in UNC format */
133 return (homedir);
143 for (i = strlen(smb_homedir); *homedir != '\0'; homedir++) {
144 if (*homedir == '\\') {
153 smb_homedir[i++] = *homedir;
185 char **homedir_v = NULL, *homedir = NULL;
262 homedir = NULL_STR;
263 else if ((homedir = process_homedir(homedir_v[0])) == NULL)
264 homedir = NULL_STR;
271 gecos_v[0], homedir, shell_v[0]) < 0)
280 if (homedir != NULL_STR && homedir_v != NULL &&
281 homedir != homedir_v[0])
282 free(homedir);