Searched defs:homedir (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/pkgadm/
H A Dremovecert.c58 char *homedir; local
123 if ((homedir = getenv("HOME")) == NULL) {
135 if (strlcat(keystore_file, homedir,
138 homedir);
H A Dlistcert.c58 char *homedir; local
166 if ((homedir = getenv("HOME")) == NULL) {
178 if (strlcat(keystore_file, homedir,
181 homedir);
H A Daddcert.c69 char *homedir; local
213 if ((homedir = getenv("HOME")) == NULL) {
225 if (strlcat(keystore_file, homedir,
228 homedir);
/illumos-gate/usr/src/cmd/svr4pkg/pkgtrans/
H A Dmain.c66 char *homedir = NULL; local
150 } else if ((homedir = getenv("HOME")) == NULL) {
158 homedir) < 0) {
/illumos-gate/usr/src/lib/pam_modules/unix_auth/
H A Dunix_auth.c108 display_warning(pam_handle_t *pamh, int failures, char *homedir) argument
113 (void) snprintf(hushpath, sizeof (hushpath), "%s/.hushlogin", homedir);
156 char *homedir = NULL; local
241 homedir = attr_pw[3].data.val_s;
312 display_warning(pamh, old_failed_count, homedir);
326 if (homedir)
327 free(homedir);
/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c67 char *homedir; variable
156 if ((homedir = (char *)malloc(len)) == NULL)
158 (void) snprintf(homedir, len, "HOME=%s", dir);
167 envinit[0] = homedir;
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmailcompat.c41 char *homedir; /* home directory of said person */ variable
95 homedir = newstr(pw->pw_dir);
275 homedir = getenv("HOME");
276 if (homedir == NULL) {
283 (void) strlcpy(forward, homedir, sizeof (forward));
H A Dvacation.c93 static char *homedir; /* home directory of said person */ variable
228 homedir = newstr(pw->pw_dir);
230 (void) snprintf(buf, sizeof (buf), "%s%s%s", homedir,
263 (void) strlcpy(buf, homedir, sizeof (buf));
585 (void) strlcpy(file, homedir, sizeof (file));
908 char *homedir; local
914 homedir = getenv("HOME");
915 if (homedir == NULL) {
919 (void) snprintf(buf, sizeof (buf), "%s%s%s", homedir,
1047 homedir
[all...]
/illumos-gate/usr/src/cmd/make/bin/
H A Dpmake.cc88 char *homedir; local
108 homedir = getenv("HOME");
109 if ((homedir != NULL) && (strlen(homedir) < (sizeof(mb_make_machines_path) - 16))) {
111 "%s/.make.machines", homedir);
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dhomedir.c67 create_home(char *homedir, char *skeldir, uid_t uid, gid_t gid, int flags) argument
79 rp = realpath(homedir, NULL);
84 (void) strcpy(dhome, homedir);
85 (void) strcpy(bhome, homedir);
134 if (chmod(homedir,
151 if (mkdir(homedir, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
163 if (chown(homedir, uid, gid) != 0) {
176 skeldir, homedir);
181 (void) rm_homedir(homedir, flags);
192 homedir, ui
275 rm_files(char *homedir, char *user, int flags) argument
[all...]
H A Duseradd.c108 static char homedir[ PATH_MAX + 1 ]; /* home directory */ variable
511 /* set homedir to home directory made from base_dir */
512 (void) sprintf(homedir, "%s/%s", base_dir, logname);
519 (void) strcpy(homedir, dir);
523 if (stat(homedir, &statbuf) == 0) {
528 errmsg(M_NO_PERM, logname, homedir);
586 nargv[argindex++] = homedir;
718 ret = create_home(homedir, skel_dir, uid, gid, zfs_flags);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dmain.c69 char homedir[MAXPATHLEN]; local
230 home = homedir;
/illumos-gate/usr/src/lib/nsswitch/ad/common/
H A Dgetpwnam.c58 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) argument
122 len = strlen(homedir);
124 if (strchr(homedir, ':') != NULL)
131 if (!(len > 1 && homedir[0] == '\\' && homedir[
55 update_buffer(ad_backend_ptr be, nss_XbyY_args_t *argp, const char *name, const char *domain, uid_t uid, gid_t gid, const char *gecos, const char *homedir, const char *shell) argument
185 char **homedir_v = NULL, *homedir = NULL; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dmain.c48 char homedir[128]; /* user's home directory */ variable
122 strncpy(homedir, pw->pw_dir, sizeof (homedir));
123 homedir[sizeof (homedir) - 1] = '\0';
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c135 static char homedir[64] = "HOME="; variable
140 {homedir, shell, (char *)0, username,
155 {homedir, shell, "PATH=:/usr/ucb:/bin:/usr/bin", username, 0};
433 (void) strncat(homedir, pwd->pw_dir, sizeof (homedir) - 6);
H A Din.rshd.c392 static char *homedir; /* "HOME=" */ variable
1125 homedir = (char *)malloc(homedir_len);
1128 if (homedir == NULL || shell == NULL || username == NULL) {
1132 (void) snprintf(homedir, homedir_len, "%s%s", homestr, pwd->pw_dir);
1144 add_to_envinit(homedir);
H A Din.tftpd.c136 static char *homedir = "/tftpboot"; variable
247 homedir = argv [optind];
296 (void) chdir(homedir);
832 if (chroot(homedir) == -1) {
835 homedir);
936 if ((dir = opendir(homedir)) == NULL)
/illumos-gate/usr/src/lib/libtecla/common/
H A Dexpand.c48 #include "homedir.h"
1143 const char *homedir; /* The home directory of the user */ local
1177 homedir = _hd_lookup_home_dir(ef->home, ef->usrnam);
1178 if(!homedir) {
1182 homelen = strlen(homedir);
1190 if(strcmp(homedir, FS_ROOT_DIR) == 0 &&
1214 ef->path->name[i] = homedir[i];
H A Dpcache.c52 #include "homedir.h"
1640 const char *homedir=NULL; /* A home directory */ local
1659 homedir = _hd_lookup_home_dir(pc->home, pc->usrnam);
1660 if(!homedir) {
1667 if(_pn_append_to_path(pc->path, homedir, -1, 0) == NULL) {
1681 if(homedir && strcmp(homedir, FS_ROOT_DIR) == 0 &&
/illumos-gate/usr/src/cmd/mailx/
H A Dinit.c81 char homedir[PATHSIZE]; /* Name of home directory */ variable
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_fnmount.c317 char *homedir; local
390 homedir = strdup(addrdata);
391 homedir[strcspn(homedir, " \t\r\n")] = '\0';
393 strdup(opts), strdup(""), homedir);
/illumos-gate/usr/src/cmd/su/
H A Dsu.c148 char homedir[PATH_MAX] = "HOME="; variable
490 (void) strlcat(homedir, dir, sizeof (homedir));
501 envinit[envidx = 0] = homedir;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dcommands.c3605 char *homedir; local
3608 if ((homedir = getenv("HOME")) == NULL)
3609 homedir = "";
3611 rcbuflen = strlen(homedir) + strlen(TELNETRC_COMP) + 1;
3617 (void) strcpy(rcname, homedir);
/illumos-gate/usr/src/cmd/cron/
H A Dcron.c276 static char homedir[LINE_MAX] = ENV_HOME; variable
280 homedir,
2519 (void) strlcat(homedir, home, sizeof (homedir));

Completed in 159 milliseconds