and initialize new member, stdin_tty.
(main): Adjust initialization(s) of `interactive',
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->move_mode = 1;
x->myeuid = geteuid ();
x->one_file_system = 0;
x->symbolic_link = 0;
x->set_mode = 0;
x->mode = 0;
+ x->stdin_tty = isatty (STDIN_FILENO);
/* Find out the current file creation mask, to knock the right bits
when using chmod. The creation mask is set to be liberal, so
version_control_string = optarg;
break;
case 'f':
- x.interactive = 0;
+ x.interactive = I_OFF;
break;
case 'i':
- x.interactive = 1;
+ x.interactive = I_ON;
break;
case STRIP_TRAILING_SLASHES_OPTION:
remove_trailing_slashes = 1;