set write bit on unlocked file
This commit is contained in:
parent
f1c4a5a8dc
commit
55720885ae
1 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,7 @@ import Types
|
||||||
import Messages
|
import Messages
|
||||||
import Locations
|
import Locations
|
||||||
import Utility
|
import Utility
|
||||||
|
import Core
|
||||||
|
|
||||||
{- The unlock subcommand replaces the symlink with a copy of the file's
|
{- The unlock subcommand replaces the symlink with a copy of the file's
|
||||||
- content. -}
|
- content. -}
|
||||||
|
@ -32,5 +33,7 @@ perform dest key = do
|
||||||
showNote "copying..."
|
showNote "copying..."
|
||||||
ok <- liftIO $ boolSystem "cp" ["-p", src, dest]
|
ok <- liftIO $ boolSystem "cp" ["-p", src, dest]
|
||||||
if ok
|
if ok
|
||||||
then return $ Just $ return True -- no cleanup needed
|
then do
|
||||||
|
liftIO $ allowWrite dest
|
||||||
|
return $ Just $ return True
|
||||||
else error "cp failed!"
|
else error "cp failed!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue