summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-13 08:36:54 +0000
committerJim Meyering <jim@meyering.net>2001-08-13 08:36:54 +0000
commitfdb24f917f21bc4a245868a23e71fa74ba3dcaf9 (patch)
treed9e28fb7c4c7d7d8c3d3ceded4a3bc38ed6e460c /src
parent2e915411471598340afce389e7efee2a79523a49 (diff)
downloadcoreutils-fdb24f917f21bc4a245868a23e71fa74ba3dcaf9.tar.xz
(cp_option_init): Adjust initialization of `interactive',
and initialize new member, stdin_tty.
Diffstat (limited to 'src')
-rw-r--r--src/install.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index 5b919c44d..5f38c0b0a 100644
--- a/src/install.c
+++ b/src/install.c
@@ -1,5 +1,5 @@
/* install - copy files and set attributes
- Copyright (C) 89, 90, 91, 1995-2000 Free Software Foundation, Inc.
+ Copyright (C) 89, 90, 91, 1995-2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -153,7 +153,7 @@ cp_option_init (struct cp_options *x)
x->failed_unlink_is_fatal = 0;
x->hard_link = 0;
- x->interactive = 0;
+ x->interactive = I_UNSPECIFIED;
x->move_mode = 0;
x->myeuid = geteuid ();
x->one_file_system = 0;
@@ -171,6 +171,7 @@ cp_option_init (struct cp_options *x)
would fail. */
x->set_mode = 1;
x->mode = S_IRUSR | S_IWUSR;
+ x->stdin_tty = 0;
x->umask_kill = 0;
x->update = 0;