Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/libexec/tftpd pullup 1.16->1.17 (carrel)



details:   https://anonhg.NetBSD.org/src/rev/7541b66ee43b
branches:  netbsd-1-4
changeset: 468934:7541b66ee43b
user:      perry <perry%NetBSD.org@localhost>
date:      Wed Jun 23 17:14:57 1999 +0000

description:
pullup 1.16->1.17 (carrel)

diffstat:

 libexec/tftpd/tftpd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2f68bfe99ae5 -r 7541b66ee43b libexec/tftpd/tftpd.c
--- a/libexec/tftpd/tftpd.c     Wed Jun 23 15:12:30 1999 +0000
+++ b/libexec/tftpd/tftpd.c     Wed Jun 23 17:14:57 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tftpd.c,v 1.16 1999/02/07 21:38:44 aidan Exp $ */
+/*     $NetBSD: tftpd.c,v 1.16.2.1 1999/06/23 17:14:57 perry Exp $     */
 
 /*
  * Copyright (c) 1983, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)tftpd.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: tftpd.c,v 1.16 1999/02/07 21:38:44 aidan Exp $");
+__RCSID("$NetBSD: tftpd.c,v 1.16.2.1 1999/06/23 17:14:57 perry Exp $");
 #endif
 #endif /* not lint */
 
@@ -549,7 +549,7 @@
                        *filep = filename;
                }
        }
-       fd = open(filename, mode == RRQ ? 0 : 1);
+       fd = open(filename, mode == RRQ ? O_RDONLY : O_WRONLY | O_TRUNC);
        if (fd < 0)
                return (errno + 100);
        file = fdopen(fd, (mode == RRQ)? "r":"w");



Home | Main Index | Thread Index | Old Index