From 80e527f2dabfb070fbfc14ef1770fc7190c3eac3 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 10 Jun 2009 01:29:22 +0000 Subject: Using WIN_PARTS_UMASK=-1 for 'default' umask, to prevent users and diskdrake confusion. --- src/msec/libmsec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.1