Module Name:    src
Committed By:   christos
Date:           Fri Jun 19 14:32:56 UTC 2015

Modified Files:
        src/usr.bin/xinstall: xinstall.c

Log Message:
restore use of whitespace needing shell.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/usr.bin/xinstall/xinstall.c

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

Modified files:

Index: src/usr.bin/xinstall/xinstall.c
diff -u src/usr.bin/xinstall/xinstall.c:1.121 src/usr.bin/xinstall/xinstall.c:1.122
--- src/usr.bin/xinstall/xinstall.c:1.121	Wed Jun 17 11:52:37 2015
+++ src/usr.bin/xinstall/xinstall.c	Fri Jun 19 10:32:56 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: xinstall.c,v 1.121 2015/06/17 15:52:37 christos Exp $	*/
+/*	$NetBSD: xinstall.c,v 1.122 2015/06/19 14:32:56 christos Exp $	*/
 
 /*
  * Copyright (c) 1987, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19
 #if 0
 static char sccsid[] = "@(#)xinstall.c	8.1 (Berkeley) 7/21/93";
 #else
-__RCSID("$NetBSD: xinstall.c,v 1.121 2015/06/17 15:52:37 christos Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.122 2015/06/19 14:32:56 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -978,7 +978,7 @@ run(const char *command, const char *fla
 	i = 1;
 	status = 0;
 
-	if (hasmeta(command)) {
+	if (needshell(command, 1)) {
 		rv = asprintf(&cmd, "%s %s%s%s", command, flags ? flags : "",
 		    flags ? " " : "", to_name);
 		if (rv < 0) {

Reply via email to