Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh PR/50619: Fix reversed test.



details:   https://anonhg.NetBSD.org/src/rev/ec583ca392e2
branches:  trunk
changeset: 342669:ec583ca392e2
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 04 13:57:15 2016 +0000

description:
PR/50619: Fix reversed test.

diffstat:

 bin/sh/redir.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cb23c5da9375 -r ec583ca392e2 bin/sh/redir.c
--- a/bin/sh/redir.c    Mon Jan 04 13:15:17 2016 +0000
+++ b/bin/sh/redir.c    Mon Jan 04 13:57:15 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: redir.c,v 1.38 2016/01/04 03:00:24 christos Exp $      */
+/*     $NetBSD: redir.c,v 1.39 2016/01/04 13:57:15 christos Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)redir.c    8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: redir.c,v 1.38 2016/01/04 03:00:24 christos Exp $");
+__RCSID("$NetBSD: redir.c,v 1.39 2016/01/04 13:57:15 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -231,7 +231,7 @@
                                memory[fd] = 1;
                        else
                                copyfd(redir->ndup.dupfd, fd, 1,
-                                   (flags & REDIR_PUSH) == 0);
+                                   (flags & REDIR_PUSH) != 0);
                }
                INTON;
                return;



Home | Main Index | Thread Index | Old Index