summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-13 08:33:04 +0000
committerJim Meyering <jim@meyering.net>2001-08-13 08:33:04 +0000
commitebb48992c0a89d2df3b3419691fad7621094ab38 (patch)
treee85059f7cb9364feffe6b833594bd34900e6ded8 /src
parent3b21e822ac3617b930414f18017ba74fd1dda238 (diff)
downloadcoreutils-ebb48992c0a89d2df3b3419691fad7621094ab38.tar.xz
(cp_option_init): Adjust initialization of `interactive',
and initialize new member, stdin_tty. (main): Adjust initialization(s) of `interactive',
Diffstat (limited to 'src')
-rw-r--r--src/cp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index 9511c376f..eb056c962 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -667,7 +667,7 @@ cp_option_init (struct cp_options *x)
x->unlink_dest_after_failed_open = 0;
x->failed_unlink_is_fatal = 1;
x->hard_link = 0;
- x->interactive = 0;
+ x->interactive = I_UNSPECIFIED;
x->myeuid = geteuid ();
x->move_mode = 0;
x->one_file_system = 0;
@@ -683,6 +683,9 @@ cp_option_init (struct cp_options *x)
x->set_mode = 0;
x->mode = 0;
+ /* Not used. */
+ x->stdin_tty = 0;
+
/* Find out the current file creation mask, to knock the right bits
when using chmod. The creation mask is set to be liberal, so
that created directories can be written, even if it would not
@@ -766,7 +769,7 @@ main (int argc, char **argv)
break;
case 'i':
- x.interactive = 1;
+ x.interactive = I_ON;
break;
case 'l':