Module Name:    src
Committed By:   christos
Date:           Wed Jun 17 15:52:37 UTC 2015

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

Log Message:
restore unlink file if strip fails (from Takeshi Nakayama)


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 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.120 src/usr.bin/xinstall/xinstall.c:1.121
--- src/usr.bin/xinstall/xinstall.c:1.120	Wed Jun 17 11:34:08 2015
+++ src/usr.bin/xinstall/xinstall.c	Wed Jun 17 11:52:37 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: xinstall.c,v 1.120 2015/06/17 15:34:08 christos Exp $	*/
+/*	$NetBSD: xinstall.c,v 1.121 2015/06/17 15:52:37 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.120 2015/06/17 15:34:08 christos Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.121 2015/06/17 15:52:37 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -1059,7 +1059,7 @@ strip(const char *to_name)
 		stripprog = _PATH_STRIP;
 #endif
 	}
-	run(stripprog, stripArgs, to_name, 0);
+	run(stripprog, stripArgs, to_name, 1);
 }
 
 /*

Reply via email to