diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/redir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redir.c b/src/redir.c index b01237d..54af96b 100644 --- a/src/redir.c +++ b/src/redir.c @@ -192,7 +192,7 @@ openredirect(union node *redir) break; case NFROMTO: fname = redir->nfile.expfname; - if ((f = open64(fname, O_RDWR|O_CREAT|O_TRUNC, 0666)) < 0) + if ((f = open64(fname, O_RDWR|O_CREAT, 0666)) < 0) goto ecreate; break; case NTO: |