diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-12-03 10:53:06 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-12-03 10:53:06 +0000 |
| commit | 245110794e64da5b3c0b03419f1d25c96cd5e8bc (patch) | |
| tree | 65b3d8124f3df0198cbca095433c841b665f3897 /libexec/tftpd | |
| parent | 0a950567fc4726a72b5df4bb46667383c7486ade (diff) | |
Notes
Diffstat (limited to 'libexec/tftpd')
| -rw-r--r-- | libexec/tftpd/tftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index d46676ecad33..b668f2ed3e0b 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: tftpd.c,v 1.4 1996/09/22 21:56:07 wosch Exp $ */ #ifndef lint @@ -435,7 +435,7 @@ validate_access(filep, mode) return (err); *filep = filename = pathname; } - 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"); |
