Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/bin/cp Pull up following revision(s) (requested by uwe in...
details: https://anonhg.NetBSD.org/src/rev/42d3a5c6cc0f
branches: netbsd-6
changeset: 777084:42d3a5c6cc0f
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sat Aug 27 13:25:23 2016 +0000
description:
Pull up following revision(s) (requested by uwe in ticket #1372):
bin/cp/cp.c: revision 1.59
The '-i' flag should work regardless of whether the standard input is
a terminal. The Open Group notes this historic behavior and correctly
notes that it doesn't make much sense. Note also, that mv(1) has
always respected its '-i' regardless of whether the standard input is
a terminal.
>From Timo Buhrmester.
diffstat:
bin/cp/cp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 84261f843b54 -r 42d3a5c6cc0f bin/cp/cp.c
--- a/bin/cp/cp.c Sat Aug 27 13:20:19 2016 +0000
+++ b/bin/cp/cp.c Sat Aug 27 13:25:23 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cp.c,v 1.58 2012/01/04 15:58:37 christos Exp $ */
+/* $NetBSD: cp.c,v 1.58.2.1 2016/08/27 13:25:23 bouyer Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95";
#else
-__RCSID("$NetBSD: cp.c,v 1.58 2012/01/04 15:58:37 christos Exp $");
+__RCSID("$NetBSD: cp.c,v 1.58.2.1 2016/08/27 13:25:23 bouyer Exp $");
#endif
#endif /* not lint */
@@ -145,7 +145,7 @@
iflag = 0;
break;
case 'i':
- iflag = isatty(fileno(stdin));
+ iflag = 1;
fflag = 0;
break;
case 'l':
Home |
Main Index |
Thread Index |
Old Index