reiserfsck: support fsck -f -n
Every other fsck util out there supports non-interactive forcing and this change brings reiserfsck into line. Signed-off-by: Roy Marples <roy@marples.name> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
f8b66d8084
commit
d3e67ae2f4
1 file changed
+3
-2
+3
-2
@@ -421,8 +421,9 @@ void warn_what_will_be_done (char * file_name, struct fsck_data * data)
|
||||
(data->log == stdout) ? "stdout" :
|
||||
(data->log_file_name ? data->log_file_name : "fsck.run"));
|
||||
|
||||
if (!(data->options & OPT_YES) && !user_confirmed (warn_to, "\nDo you want to "
|
||||
"run this program?[N/Yes] (note need to type Yes if you do):", "Yes\n"))
|
||||
if (!(data->options & OPT_YES) && !(data->options & OPT_SILENT) &&
|
||||
!user_confirmed (warn_to, "\nDo you want to run this program?[N/Yes] "
|
||||
"(note need to type Yes if you do):", "Yes\n"))
|
||||
exit (EXIT_USER);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user