summaryrefslogtreecommitdiffhomepage
path: root/Storage
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-17 15:52:08 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-17 15:52:08 -0400
commit19e3dc5541a74fe1c323c629bdf214b8690640e5 (patch)
treed4c16b9bb027887e9b7ea323997d30e00ba9ebdb /Storage
parented8d1ed03c3520ccd4b3c775817bef122457f224 (diff)
downloadkeysafe-19e3dc5541a74fe1c323c629bdf214b8690640e5.tar.gz
save restored secret key to gpg or file
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 57ba530..82a7fd0 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 0o600)
+ fd <- openFd tmp WriteOnly (Just 0o400)
(defaultFileFlags { exclusive = True } )
h <- fdToHandle fd
B.hPut h (toByteString s)