diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-09-07 07:41:41 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-09-07 07:41:41 +0000 |
commit | 656e142a62bdf24c0fac9b173077aad9427519cc (patch) | |
tree | e52b26731297d21d16af93b82c674dfd9a4dfc33 /perl-install | |
parent | f039be80373ab843a9a30d862d2dc601ab7e9aff (diff) | |
download | drakx-656e142a62bdf24c0fac9b173077aad9427519cc.tar drakx-656e142a62bdf24c0fac9b173077aad9427519cc.tar.gz drakx-656e142a62bdf24c0fac9b173077aad9427519cc.tar.bz2 drakx-656e142a62bdf24c0fac9b173077aad9427519cc.tar.xz drakx-656e142a62bdf24c0fac9b173077aad9427519cc.zip |
(set_default) use "users" options for removable devices (so that users
can unmount them if the devices were mounted by root)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/fs/mount_options.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm index dd9dfc93b..1ce622721 100644 --- a/perl-install/fs/mount_options.pm +++ b/perl-install/fs/mount_options.pm @@ -198,7 +198,7 @@ sub set_default { if (member('vfat', split(':', $part->{fs_type})) || $part->{fs_type} eq 'auto') { put_in_hash($options, { - user => 1, noexec => 0, + users => 1, noexec => 0, }) if $part->{is_removable}; put_in_hash($options, { @@ -223,13 +223,12 @@ sub set_default { # rationalize: no need for user if ($options->{autofs} || $options->{supermount}) { - $options->{user} = 0; + $options->{users} = $options->{user} = 0; } - # have noauto when we have user - $options->{noauto} = 1 if $options->{user}; - - if ($options->{user}) { + if ($options->{user} || $options->{users}) { + # have noauto when we have user + $options->{noauto} = 1; # ensure security (user_implies - noexec as noexec is not a security matter) $options->{$_} = 1 foreach 'nodev', 'nosuid'; } |