diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-17 15:45:54 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-17 15:45:54 -0400 |
commit | ed8d1ed03c3520ccd4b3c775817bef122457f224 (patch) | |
tree | 0689085afca716f9823dc32b85af0f45db833ee5 /Storage | |
parent | aa0bb2e43b6de5301939ca4dad2f5e264e469227 (diff) | |
download | keysafe-ed8d1ed03c3520ccd4b3c775817bef122457f224.tar.gz |
store files mode 400
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 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) |