aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-01-29 18:35:10 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-01-29 18:35:10 +0000
commitece8231bd9eaa066e813e48a135428e4613d115e (patch)
tree9158bb36918fd5071952a278060a1c34fc190c02 /src
parent94f0a52befa8d4a330c403ebb1acee6225207579 (diff)
downloadmsec-ece8231bd9eaa066e813e48a135428e4613d115e.tar
msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar.gz
msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar.bz2
msec-ece8231bd9eaa066e813e48a135428e4613d115e.tar.xz
msec-ece8231bd9eaa066e813e48a135428e4613d115e.zip
Fixed umask for windows partitions.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/libmsec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 019e16f..36423e2 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -928,10 +928,10 @@ class MSEC:
msec.remove_line_matching('^HISTFILESIZE=')
def set_win_parts_umask(self, umask):
- ''' Set umask option for mounting vfat and ntfs partitions. If umask is '0', default system umask is used.'''
+ ''' Set umask option for mounting vfat and ntfs partitions. If umask is '0', default system umask is used.'''
fstab = self.configfiles.get_config_file(FSTAB)
- if umask == "no":
+ if umask == "0":
fstab.replace_line_matching("(.*\s(vfat|ntfs)\s+)umask=\d+(\s.*)", "@1defaults@3", 0, 1)
fstab.replace_line_matching("(.*\s(vfat|ntfs)\s+)umask=\d+,(.*)", "@1@3", 0, 1)
fstab.replace_line_matching("(.*\s(vfat|ntfs)\s+\S+),umask=\d+(.*)", "@1@3", 0, 1)