aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-06-10 14:11:53 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-06-10 14:11:53 +0300
commit588fbc95959785566d6929784d73db9c167433a1 (patch)
treeb62284a5767abe088c474494eebc2e3e5de47fde /tests
parentc4dbd40477bb658cdc5c5e01b8f80057e587cd88 (diff)
downloadpies-588fbc95959785566d6929784d73db9c167433a1.tar.gz
pies-588fbc95959785566d6929784d73db9c167433a1.tar.bz2
Bugfix
* tests/nt.c: Trivial fixes
Diffstat (limited to 'tests')
-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)
- fd = open (name, sfd ? (O_WRONLY | O_TRUNC) : O_RDONLY);
- if (!fd)
+ fd = open (name, sfd ? (O_CREAT | O_TRUNC | O_WRONLY) : O_RDONLY, 0644);
+ if (fd == -1)
{
@@ -293,3 +293,3 @@ redirect (int sfd, char const *name)
}
- if (dup2 (fd, sfd))
+ if (dup2 (fd, sfd) == -1)
{

Return to:

Send suggestions and report system problems to the System administrator.