Added check for unhide option.

This commit is contained in:
Leonardo Quijano Vincenzi 2004-02-07 01:04:13 +00:00 committed by Alexandre Julliard
parent 7cc70c0a8f
commit 6064b41dff
1 changed files with 11 additions and 0 deletions

View File

@ -416,6 +416,17 @@ PERMCHECK:
$reason = "no Device option found -> CD-ROM labels can\'t be read";
$advice = "add Device option and make sure the device given is accessible by you";
}
else
{
my $fs_line = `grep $device /etc/fstab`;
my @entry = split /\s+/, $fs_line;
if (! ($entry[3] =~ /unhide/))
{
$level = $is_suspect;
$reason = "no unhide option found";
$advice = "add unhide option to fstab, check http://www.winehq.org/site/docs/wine-user/config-drive-main"
}
}
last;
};
/^ramdisk$/i && do { last; };