diff options
| author | Guido van Rooij <guido@FreeBSD.org> | 1998-03-06 19:03:35 +0000 |
|---|---|---|
| committer | Guido van Rooij <guido@FreeBSD.org> | 1998-03-06 19:03:35 +0000 |
| commit | 240ac5a208c673b851b47cd2b5d32087c961acb2 (patch) | |
| tree | 784035ff1e786e2c4513f52b678007c9ffd88eb8 /gnu | |
| parent | 3d90a70e173eb8a92e4fb277e57a365bc9b7f86a (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/sort/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/sort/sort.c b/gnu/usr.bin/sort/sort.c index 9457e94c9f8c..1faee4242e94 100644 --- a/gnu/usr.bin/sort/sort.c +++ b/gnu/usr.bin/sort/sort.c @@ -369,7 +369,7 @@ xtmpfopen (const char *file) FILE *fp; int fd; - fd = open (file, O_WRONLY | O_CREAT | O_TRUNC, 0600); + fd = open (file, O_EXCL | O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd < 0 || (fp = fdopen (fd, "w")) == NULL) { error (0, errno, "%s", file); |
