summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2013-09-01 15:34:23 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2013-09-01 15:34:23 +0200
commit9bc8a1d7080d66e736db4208daaf65541a021164 (patch)
treef023d2f266b576d44570b800c7eef8d4621c9225
parent1441794de8630e672f43f4756d8c58ec26cf1a16 (diff)
downloadzvolcreator-9bc8a1d7080d66e736db4208daaf65541a021164.tar.gz
zvolcreator-9bc8a1d7080d66e736db4208daaf65541a021164.tar.bz2
zvolcreator-9bc8a1d7080d66e736db4208daaf65541a021164.zip
Set the umask
-rwxr-xr-xzvolcreator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/zvolcreator.rb b/zvolcreator.rb
index 113fd51..7d5dfc3 100755
--- a/zvolcreator.rb
+++ b/zvolcreator.rb
@@ -10,6 +10,7 @@ sockdir = File.dirname(Config[:socketpath])
# Check if socket directory exists, if not - create if with apropriate options
Dir.mkdir(sockdir, 0700) if not File.exists?(sockdir)
+File.umask(0077)
server = UNIXServer.open(Config[:socketpath])
loop do