Handle hostnames with upper-case letters
[webmin.git] / fdisk / fsck.cgi
1 #!/usr/local/bin/perl
2 # fsck.cgi
3 # Where the fsck command actually gets run
4
5 require './fdisk-lib.pl';
6 &ReadParse();
7 &can_edit_disk($in{'dev'}) || &error($text{'fsck_ecannot'});
8 &ui_print_unbuffered_header(undef, $text{'fsck_title'}, "");
9
10 $cmd = &fsck_command($in{'type'}, $in{'dev'});
11 print "<b>",&text('fsck_exec', "<tt>$cmd</tt>"),"</b>\n";
12 print "<pre>\n";
13 &foreign_call("proc", "safe_process_exec_logged",
14               $cmd, 0, 0, STDOUT, undef, 1);
15 print "</pre>\n";
16 print "<b>... ",&fsck_error($?/256),"</b><p>\n"; 
17 &webmin_log("fsck", undef, $in{'dev'}, \%in);
18
19 &ui_print_footer("", $text{'index_return'});