version 1.52, 2002/03/18 17:50:31 |
version 1.53, 2002/03/25 09:21:13 |
|
|
/* Restore the privileged uid. */ |
/* Restore the privileged uid. */ |
restore_uid(); |
restore_uid(); |
xfree(file); |
xfree(file); |
return (NULL); |
return (0); |
} |
} |
/* Open the file containing the authorized keys. */ |
/* Open the file containing the authorized keys. */ |
f = fopen(file, "r"); |
f = fopen(file, "r"); |
|
|
/* Restore the privileged uid. */ |
/* Restore the privileged uid. */ |
restore_uid(); |
restore_uid(); |
xfree(file); |
xfree(file); |
return (NULL); |
return (0); |
} |
} |
if (options.strict_modes && |
if (options.strict_modes && |
secure_filename(f, file, pw, line, sizeof(line)) != 0) { |
secure_filename(f, file, pw, line, sizeof(line)) != 0) { |
|
|
fclose(f); |
fclose(f); |
log("Authentication refused: %s", line); |
log("Authentication refused: %s", line); |
restore_uid(); |
restore_uid(); |
return (NULL); |
return (0); |
} |
} |
|
|
/* Flag indicating whether the key is allowed. */ |
/* Flag indicating whether the key is allowed. */ |