Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/bin/cp Pull up following revision(s) (requested by uwe in...
details: https://anonhg.NetBSD.org/src/rev/278eea9f97f5
branches: netbsd-7
changeset: 799841:278eea9f97f5
user: martin <martin%NetBSD.org@localhost>
date: Sun Mar 06 18:44:10 2016 +0000
description:
Pull up following revision(s) (requested by uwe in ticket #1131):
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 479ad5d6663e -r 278eea9f97f5 bin/cp/cp.c
--- a/bin/cp/cp.c Sun Mar 06 18:41:53 2016 +0000
+++ b/bin/cp/cp.c Sun Mar 06 18:44:10 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.20.1 2016/03/06 18:44:10 martin 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.20.1 2016/03/06 18:44:10 martin 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':
- Prev by Date:
[src/netbsd-7]: src/doc Tickets #1103, #1117 - #1121, #1123, #1124, #1126, #1...
- Next by Date:
[src/netbsd-7]: src/sys/arch/xen/xen Pull up following revision(s) (requested...
- Previous by Thread:
[src/netbsd-7]: src/doc Tickets #1103, #1117 - #1121, #1123, #1124, #1126, #1...
- Next by Thread:
[src/netbsd-7]: src/sys/arch/xen/xen Pull up following revision(s) (requested...
- Indexes:
Home |
Main Index |
Thread Index |
Old Index