diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-09-10 11:42:41 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-09-10 11:42:41 +0000 |
commit | 1cc16ed12d21302832e5ed059807a21877a99f83 (patch) | |
tree | 3bf9002d0d68c35dfe40007307c53f03f2076327 /perl-install/fs.pm | |
parent | 9ae56c69a9ca88d7fe04c2cfea243754d67bce0b (diff) | |
download | drakx-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
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 5 |
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 }); |