aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-06-10 01:29:22 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-06-10 01:29:22 +0000
commit80e527f2dabfb070fbfc14ef1770fc7190c3eac3 (patch)
treeb44b35e1bd3f8d26ca2c676911958961f1bbf2cf /src
parent826cd193bc65cf167cc0901698a8802ecc99bd73 (diff)
downloadmsec-80e527f2dabfb070fbfc14ef1770fc7190c3eac3.tar
msec-80e527f2dabfb070fbfc14ef1770fc7190c3eac3.tar.gz
msec-80e527f2dabfb070fbfc14ef1770fc7190c3eac3.tar.bz2
msec-80e527f2dabfb070fbfc14ef1770fc7190c3eac3.tar.xz
msec-80e527f2dabfb070fbfc14ef1770fc7190c3eac3.zip
Using WIN_PARTS_UMASK=-1 for 'default' umask, to prevent users and
diskdrake confusion.
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 9cd384a..162cf01 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -971,14 +971,14 @@ 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 '-1', default system umask is used.'''
fstab = self.configfiles.get_config_file(FSTAB)
try:
test_umask = int(umask)
except:
self.log.error(_('Invalid file system umask "%s"') % umask)
return
- if umask == "0":
+ if umask == "-1":
fstab.replace_line_matching("(.*\s(vfat|ntfs|ntfs-3g)\s+)umask=\d+(\s.*)", "@1defaults@3", 0, 1)
fstab.replace_line_matching("(.*\s(vfat|ntfs|ntfs-3g)\s+)umask=\d+,(.*)", "@1@3", 0, 1)
fstab.replace_line_matching("(.*\s(vfat|ntfs|ntfs-3g)\s+\S+),umask=\d+(.*)", "@1@3", 0, 1)