Home
last modified time | relevance | path

Searched refs:homedir (Results 1 – 25 of 35) sorted by relevance

12

/titanic_44/usr/src/cmd/oamuser/user/
H A Dhomedir.c52 create_home(char *homedir, char *skeldir, uid_t uid, gid_t gid) in create_home() argument
58 if( mkdir(homedir, 0775) != 0 ) { in create_home()
63 if( chown(homedir, uid, gid) != 0 ) { in create_home()
72 skeldir, homedir); in create_home()
77 (void) rm_homedir( homedir ); in create_home()
83 homedir, uid ); in create_home()
88 (void) rm_homedir( homedir ); in create_home()
94 homedir, gid ); in create_home()
98 (void) rm_homedir( homedir ); in create_home()
H A Drmfiles.c44 rm_files(homedir, user) in rm_files() argument
45 char *homedir; /* home directory to remove */ in rm_files()
49 (void) sprintf( sptr,"rm -rf %s", homedir );
H A Duseradd.c106 static char homedir[ PATH_MAX + 1 ]; /* home directory */ variable
490 (void) sprintf(homedir, "%s/%s", base_dir, logname);
497 (void) strcpy(homedir, dir);
501 if (stat(homedir, &statbuf) == 0) {
506 errmsg(M_NO_PERM, logname, homedir);
564 nargv[argindex++] = homedir;
690 (create_home(homedir, skel_dir, uid, gid) != EX_SUCCESS)) {
H A DMakefile49 ADD_OBJ= useradd.o homedir.o groups.o call_pass.o \
57 call_pass.o isbusy.o homedir.o userdefs.o \
/titanic_44/usr/src/lib/nsswitch/ad/common/
H A Dgetpwnam.c58 const char *homedir, const char *shell) in update_buffer() argument
70 argp->key.name, "x", uid, gid, gecos, homedir, shell) + 1; in update_buffer()
75 name, domain, "x", uid, gid, gecos, homedir, shell) + 1; in update_buffer()
93 argp->key.name, "x", uid, gid, gecos, homedir, shell); in update_buffer()
96 name, domain, "x", uid, gid, gecos, homedir, shell); in update_buffer()
116 process_homedir(char *homedir) in process_homedir() argument
122 len = strlen(homedir); in process_homedir()
124 if (strchr(homedir, ':') != NULL) in process_homedir()
131 if (!(len > 1 && homedir[0] == '\\' && homedir[1] == '\\')) in process_homedir()
133 return (homedir); in process_homedir()
[all …]
/titanic_44/usr/src/lib/pam_modules/unix_auth/
H A Dunix_auth.c108 display_warning(pam_handle_t *pamh, int failures, char *homedir) in display_warning() argument
113 (void) snprintf(hushpath, sizeof (hushpath), "%s/.hushlogin", homedir); in display_warning()
156 char *homedir = NULL; in pam_sm_authenticate() local
241 homedir = attr_pw[3].data.val_s; in pam_sm_authenticate()
312 display_warning(pamh, old_failed_count, homedir); in pam_sm_authenticate()
326 if (homedir) in pam_sm_authenticate()
327 free(homedir); in pam_sm_authenticate()
/titanic_44/usr/src/cmd/svr4pkg/pkgadm/
H A Dremovecert.c58 char *homedir; in removecert() local
123 if ((homedir = getenv("HOME")) == NULL) { in removecert()
135 if (strlcat(keystore_file, homedir, in removecert()
138 homedir); in removecert()
H A Dlistcert.c58 char *homedir; in listcert() local
166 if ((homedir = getenv("HOME")) == NULL) { in listcert()
178 if (strlcat(keystore_file, homedir, in listcert()
181 homedir); in listcert()
H A Daddcert.c69 char *homedir; in addcert() local
213 if ((homedir = getenv("HOME")) == NULL) { in addcert()
225 if (strlcat(keystore_file, homedir, in addcert()
228 homedir); in addcert()
/titanic_44/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"); in AutoInstall()
276 if (homedir == NULL) { in AutoInstall()
283 (void) strlcpy(forward, homedir, sizeof (forward)); in AutoInstall()
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 = getenv("HOME"); in AutoInstall()
[all …]
/titanic_44/usr/src/cmd/make/bin/
H A Dpmake.cc88 char *homedir; in read_make_machines() local
108 homedir = getenv("HOME"); in read_make_machines()
109 if ((homedir != NULL) && (strlen(homedir) < (sizeof(mb_make_machines_path) - 16))) { in read_make_machines()
111 "%s/.make.machines", homedir); in read_make_machines()
/titanic_44/usr/src/cmd/newgrp/
H A Dnewgrp.c67 char *homedir; variable
156 if ((homedir = (char *)malloc(len)) == NULL) in main()
158 (void) snprintf(homedir, len, "HOME=%s", dir); in main()
167 envinit[0] = homedir; in main()
/titanic_44/usr/src/cmd/svr4pkg/pkgtrans/
H A Dmain.c66 char *homedir = NULL; in main() local
150 } else if ((homedir = getenv("HOME")) == NULL) { in main()
158 homedir) < 0) { in main()
/titanic_44/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';
H A Dexpand.c134 extern char homedir[];
185 cp1 = homedir;
641 extern char homedir[];
652 s2 = homedir;
655 s2 = homedir;
/titanic_44/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); in doit()
H A Din.tftpd.c136 static char *homedir = "/tftpboot"; variable
247 homedir = argv [optind]; in main()
296 (void) chdir(homedir); in main()
832 if (chroot(homedir) == -1) { in tftp()
835 homedir); in tftp()
936 if ((dir = opendir(homedir)) == NULL) in pnp_check()
/titanic_44/usr/src/lib/libtecla/common/
H A Dexpand.c1143 const char *homedir; /* The home directory of the user */ in ef_expand_special() local
1177 homedir = _hd_lookup_home_dir(ef->home, ef->usrnam); in ef_expand_special()
1178 if(!homedir) { in ef_expand_special()
1182 homelen = strlen(homedir); in ef_expand_special()
1190 if(strcmp(homedir, FS_ROOT_DIR) == 0 && in ef_expand_special()
1214 ef->path->name[i] = homedir[i]; in ef_expand_special()
H A Dhomedir.h78 #define HOME_DIR_FN(fn) int (fn)(void *data, const char *usrnam, const char *homedir, char *errmsg,…
H A Dpcache.c1640 const char *homedir=NULL; /* A home directory */ in pca_expand_tilde() local
1659 homedir = _hd_lookup_home_dir(pc->home, pc->usrnam); in pca_expand_tilde()
1660 if(!homedir) { in pca_expand_tilde()
1667 if(_pn_append_to_path(pc->path, homedir, -1, 0) == NULL) { in pca_expand_tilde()
1681 if(homedir && strcmp(homedir, FS_ROOT_DIR) == 0 && in pca_expand_tilde()
/titanic_44/usr/src/cmd/fs.d/autofs/
H A Dns_fnmount.c317 char *homedir; in process_ref() local
390 homedir = strdup(addrdata); in process_ref()
391 homedir[strcspn(homedir, " \t\r\n")] = '\0'; in process_ref()
393 strdup(opts), strdup(""), homedir); in process_ref()
/titanic_44/usr/src/cmd/mailx/
H A Dtemp.c82 nstrcpy(homedir, PATHSIZE, Getf("HOME")); in tinit()
/titanic_44/usr/src/lib/libtecla/
H A DMakefile.com29 direader.o homedir.o pathutil.o expand.o stringrp.o cplfile.o \
/titanic_44/usr/src/cmd/mailx/hdr/
H A Dglob.h72 extern char homedir[]; /* Name of home directory */

12