version 1.187, 2005/10/10 10:23:08 |
version 1.188, 2005/10/30 08:52:17 |
|
|
endpwent(); |
endpwent(); |
|
|
/* |
/* |
* Close any extra open file descriptors so that we don\'t have them |
* Close any extra open file descriptors so that we don't have them |
* hanging around in clients. Note that we want to do this after |
* hanging around in clients. Note that we want to do this after |
* initgroups, because at least on Solaris 2.3 it leaves file |
* initgroups, because at least on Solaris 2.3 it leaves file |
* descriptors open. |
* descriptors open. |
|
|
} |
} |
#endif |
#endif |
|
|
/* Change current directory to the user\'s home directory. */ |
/* Change current directory to the user's home directory. */ |
if (chdir(pw->pw_dir) < 0) { |
if (chdir(pw->pw_dir) < 0) { |
fprintf(stderr, "Could not chdir to home directory %s: %s\n", |
fprintf(stderr, "Could not chdir to home directory %s: %s\n", |
pw->pw_dir, strerror(errno)); |
pw->pw_dir, strerror(errno)); |