break;
case PASSWD:
- if (fstat(fileno(cfile), &stb) >= 0 &&
+ if (!credentials_no_perm_check &&
+ fstat(fileno(cfile), &stb) >= 0 &&
(stb.st_mode & 077) != 0) {
/* We make this a fatal error to force the
user to correct it. */
advise ("tmp", "fgets");
}
tmp[strlen(tmp) - 1] = '\0';
- if (*tmp != '\0') {
+ if (*tmp != '\0' || myname == NULL) {
myname = tmp;
}