diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-17 15:52:08 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-17 15:52:08 -0400 |
commit | 19e3dc5541a74fe1c323c629bdf214b8690640e5 (patch) | |
tree | d4c16b9bb027887e9b7ea323997d30e00ba9ebdb /Storage | |
parent | ed8d1ed03c3520ccd4b3c775817bef122457f224 (diff) | |
download | keysafe-19e3dc5541a74fe1c323c629bdf214b8690640e5.tar.gz |
save restored secret key to gpg or file
Diffstat (limited to 'Storage')
-rw-r--r-- | Storage/Local.hs | 2 |
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) |