diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/afs/src/arlad/darla.c | 2 | ||||
-rw-r--r-- | usr.sbin/afs/src/arlad/reconnect.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/afs/src/arlad/darla.c b/usr.sbin/afs/src/arlad/darla.c index 0c41eef72d1..fc565b621ec 100644 --- a/usr.sbin/afs/src/arlad/darla.c +++ b/usr.sbin/afs/src/arlad/darla.c @@ -36,7 +36,7 @@ int DARLA_Open(DARLA_file *Dfp, char *fname, int oflag) int fd; - fd = open(fname, oflag); + fd = open(fname, oflag, 0600); arla_log(ADEBMISC, "DARLA_Open: errno=%d", errno); if (fd > 0) { diff --git a/usr.sbin/afs/src/arlad/reconnect.c b/usr.sbin/afs/src/arlad/reconnect.c index 4c4805bc55e..56476fc23a2 100644 --- a/usr.sbin/afs/src/arlad/reconnect.c +++ b/usr.sbin/afs/src/arlad/reconnect.c @@ -1063,7 +1063,7 @@ copy_cached_file(int from, int to) snprintf (name_to, sizeof(name_to), "%04X", to); fd_from = open(name_from,O_RDONLY | O_BINARY); - fd_to = open(name_to, O_WRONLY | O_CREAT | O_BINARY); + fd_to = open(name_to, O_WRONLY | O_CREAT | O_BINARY | O_TRUNC, 0600); while((n = read(fd_from, buf, BUFSIZE)) > 0) write(fd_to, buf, n); |