diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-10 12:50:00 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-10 12:50:00 -0400 |
commit | 55720885aeb90e9b8d3e4153145b6a13cac1c0c7 (patch) | |
tree | f6e85d35effd855ee450adc7f9dae014bd816116 /Command/Unlock.hs | |
parent | f1c4a5a8dc222f19245f26e3deb7b25237bfc712 (diff) |
set write bit on unlocked file
Diffstat (limited to 'Command/Unlock.hs')
-rw-r--r-- | Command/Unlock.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Command/Unlock.hs b/Command/Unlock.hs index 57d4ad87a..de21988de 100644 --- a/Command/Unlock.hs +++ b/Command/Unlock.hs @@ -16,6 +16,7 @@ import Types import Messages import Locations import Utility +import Core {- The unlock subcommand replaces the symlink with a copy of the file's - content. -} @@ -32,5 +33,7 @@ perform dest key = do showNote "copying..." ok <- liftIO $ boolSystem "cp" ["-p", src, dest] if ok - then return $ Just $ return True -- no cleanup needed + then do + liftIO $ allowWrite dest + return $ Just $ return True else error "cp failed!" |