summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fstab.py b/fstab.py
index 2cfb9481c..a13ddf43b 100644
--- a/fstab.py
+++ b/fstab.py
@@ -509,7 +509,7 @@ class Fstab:
iutil.execWithRedirect ("/usr/sbin/mkswap",
[ "mkswap", '-v1', file ],
stdout = None, stderr = None)
-
+ os.chmod(file, 0600)
formatThisSwap = 1
else:
log("swap file %s is in the fstab, but does not exist",