diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-11-05 13:14:38 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-11-05 13:14:38 +0000 |
commit | a0e188bdcf3b8743da4a274795a22e14c2ab39c8 (patch) | |
tree | b0fe8b9b78c51dc53af52a6ba160585f1be30738 | |
parent | 7e096aaf78bc614d4bb7e53b93f9029ad33fffbf (diff) | |
download | dropbear-a0e188bdcf3b8743da4a274795a22e14c2ab39c8.tar.gz |
Give a umask argument to open() in loginrec
-rw-r--r-- | loginrec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1334,7 +1334,7 @@ lastlog_openseek(struct logininfo *li, int *fd, int filemode) return 0; } - *fd = open(lastlog_file, filemode); + *fd = open(lastlog_file, filemode, 0600); if ( *fd < 0) { dropbear_log(LOG_INFO, "lastlog_openseek: Couldn't open %s: %s", lastlog_file, strerror(errno)); |