summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-09-10 11:42:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-09-10 11:42:41 +0000
commit1cc16ed12d21302832e5ed059807a21877a99f83 (patch)
tree3bf9002d0d68c35dfe40007307c53f03f2076327
parent9ae56c69a9ca88d7fe04c2cfea243754d67bce0b (diff)
downloaddrakx-1cc16ed12d21302832e5ed059807a21877a99f83.tar
drakx-1cc16ed12d21302832e5ed059807a21877a99f83.tar.gz
drakx-1cc16ed12d21302832e5ed059807a21877a99f83.tar.bz2
drakx-1cc16ed12d21302832e5ed059807a21877a99f83.tar.xz
drakx-1cc16ed12d21302832e5ed059807a21877a99f83.zip
- have ntfs "ro" by default
- "umask=0" is a special option for ntfs
-rw-r--r--perl-install/fs.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 1cee0a1eb..7eaf61711 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -316,6 +316,7 @@ sub mount_options_unpack {
my %per_fs = (
iso9660 => [ qw(unhide) ],
vfat => [ qw(umask=0) ],
+ ntfs => [ qw(umask=0) ],
nfs => [ qw(rsize=8192 wsize=8192) ],
smbfs => [ qw(username= password=) ],
davfs => [ qw(username= password= uid= gid=) ],
@@ -459,8 +460,8 @@ sub set_default_options {
'umask=0' => $security < 3, 'iocharset=' => $iocharset, 'codepage=' => $codepage,
});
}
- if (isThisFs('ntfs', $part) || $is_auto) {
- put_in_hash($options, { 'umask=0' => $security < 3, 'iocharset=' => $iocharset });
+ if (isThisFs('ntfs', $part)) {
+ put_in_hash($options, { ro => 1, 'umask=0' => $security < 3, 'iocharset=' => $iocharset });
}
if (isThisFs('iso9660', $part) || $is_auto) {
put_in_hash($options, { user => 1, noexec => 0, 'iocharset=' => $iocharset });