aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/nt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/nt.c b/tests/nt.c
index 6ee18f8..7501586 100644
--- a/tests/nt.c
+++ b/tests/nt.c
@@ -287,4 +287,4 @@ redirect (int sfd, char const *name)
287 287
288 fd = open (name, sfd ? (O_WRONLY | O_TRUNC) : O_RDONLY); 288 fd = open (name, sfd ? (O_CREAT | O_TRUNC | O_WRONLY) : O_RDONLY, 0644);
289 if (!fd) 289 if (fd == -1)
290 { 290 {
@@ -293,3 +293,3 @@ redirect (int sfd, char const *name)
293 } 293 }
294 if (dup2 (fd, sfd)) 294 if (dup2 (fd, sfd) == -1)
295 { 295 {

Return to:

Send suggestions and report system problems to the System administrator.