Module Name:    src
Committed By:   christos
Date:           Mon Jan  4 13:57:15 UTC 2016

Modified Files:
        src/bin/sh: redir.c

Log Message:
PR/50619: Fix reversed test.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/bin/sh/redir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/redir.c
diff -u src/bin/sh/redir.c:1.38 src/bin/sh/redir.c:1.39
--- src/bin/sh/redir.c:1.38	Sun Jan  3 22:00:24 2016
+++ src/bin/sh/redir.c	Mon Jan  4 08:57:15 2016
@@ -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 @@ openredirect(union node *redir, char mem
 				memory[fd] = 1;
 			else
 				copyfd(redir->ndup.dupfd, fd, 1,
-				    (flags & REDIR_PUSH) == 0);
+				    (flags & REDIR_PUSH) != 0);
 		}
 		INTON;
 		return;

Reply via email to