diff options
| author | Guido van Rooij <guido@FreeBSD.org> | 1998-03-06 19:00:26 +0000 |
|---|---|---|
| committer | Guido van Rooij <guido@FreeBSD.org> | 1998-03-06 19:00:26 +0000 |
| commit | 52ed3a5d658549dfde9d46617407749c6b4a7a7f (patch) | |
| tree | 973d839dd55b15a1d8dd651c9d1fc3f4460f321d /gnu/usr.bin/sort | |
| parent | 8199f5c43158c76b02b2e781e30840f09f8a9a38 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/sort')
| -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); |
