summaryrefslogtreecommitdiffhomepage
path: root/Storage
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-17 15:45:54 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-17 15:45:54 -0400
commited8d1ed03c3520ccd4b3c775817bef122457f224 (patch)
tree0689085afca716f9823dc32b85af0f45db833ee5 /Storage
parentaa0bb2e43b6de5301939ca4dad2f5e264e469227 (diff)
downloadkeysafe-ed8d1ed03c3520ccd4b3c775817bef122457f224.tar.gz
store files mode 400
Diffstat (limited to 'Storage')
-rw-r--r--Storage/Local.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Storage/Local.hs b/Storage/Local.hs
index 93647df..57ba530 100644
--- a/Storage/Local.hs
+++ b/Storage/Local.hs
@@ -41,7 +41,7 @@ store i s = onError (StoreFailure . show) $ do
then return StoreAlreadyExists
else do
let tmp = dest ++ ".tmp"
- fd <- openFd tmp WriteOnly (Just 0o666)
+ fd <- openFd tmp WriteOnly (Just 0o600)
(defaultFileFlags { exclusive = True } )
h <- fdToHandle fd
B.hPut h (toByteString s)