reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reiserfsck: support `fsck -f -n`
@ 2009-01-17 16:19 Mike Frysinger
       [not found] ` <50759633.2060806@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2009-01-17 16:19 UTC (permalink / raw)
  To: reiserfs-devel; +Cc: Roy Marples

From: Roy Marples <roy@marples.name>

Every other fsck util out there supports non-interactive forcing and this
change brings reiserfsck into line.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 fsck/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fsck/main.c b/fsck/main.c
index 06d7bd2..cfee979 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -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);
 }
 
-- 
1.6.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-11 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-17 16:19 [PATCH] reiserfsck: support `fsck -f -n` Mike Frysinger
     [not found] ` <50759633.2060806@gmail.com>
2012-10-11 15:55   ` Fwd: " Jeff Mahoney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).