vicfg: Quote filename. Closes: #696193
This commit is contained in:
parent
0846d60c3c
commit
77931c1e92
2 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,7 @@ vicfg :: Cfg -> FilePath -> Annex ()
|
|||
vicfg curcfg f = do
|
||||
vi <- liftIO $ catchDefaultIO "vi" $ getEnv "EDITOR"
|
||||
-- Allow EDITOR to be processed by the shell, so it can contain options.
|
||||
unlessM (liftIO $ boolSystem "sh" [Param "-c", Param $ unwords [vi, f]]) $
|
||||
unlessM (liftIO $ boolSystem "sh" [Param "-c", Param $ unwords [vi, shellEscape f]]) $
|
||||
error $ vi ++ " exited nonzero; aborting"
|
||||
r <- parseCfg curcfg <$> liftIO (readFileStrict f)
|
||||
liftIO $ nukeFile f
|
||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
git-annex (3.20121212) UNRELEASED; urgency=low
|
||||
|
||||
* kqueue: Fix bug that made broken symlinks not be noticed.
|
||||
* vicfg: Quote filename. Closes: #696193
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Fri, 14 Dec 2012 16:25:14 -0400
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue