summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2004-05-27 00:50:14 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2004-05-27 00:50:14 +0000
commit8c4caaa0fe88fa986001738b3166c4146279c31b (patch)
tree6ded1fdfe0bc3165d0c234a4c0dd53a50ea7ca74 /usr.bin/ssh
parentf3d29fed61f1faab62b7e1c742de73b8b2ceb6a6 (diff)
Kill dead code after fatal(); ok djm@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/readconf.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index 0dd37c573d7..3a6f51350ad 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/readconf.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readconf.c,v 1.130 2004/04/27 09:46:36 djm Exp $");
+RCSID("$OpenBSD: readconf.c,v 1.131 2004/05/27 00:50:13 dtucker Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -807,16 +807,11 @@ read_config_file(const char *filename, const char *host, Options *options,
if (checkperm) {
struct stat sb;
- if (fstat(fileno(f), &sb) == -1) {
+ if (fstat(fileno(f), &sb) == -1)
fatal("fstat %s: %s", filename, strerror(errno));
- fclose(f);
- return (0);
- }
if (((sb.st_uid != 0 && sb.st_uid != getuid()) ||
- (sb.st_mode & 022) != 0)) {
+ (sb.st_mode & 022) != 0))
fatal("Bad owner or permissions on %s", filename);
- return 0;
- }
}
debug("Reading configuration data %.200s", filename);