fix creation of creds directory for xmpp

This commit is contained in:
Joey Hess 2012-11-10 20:48:45 -04:00
parent f642bdc4b2
commit f3bbe075f2
2 changed files with 3 additions and 0 deletions

View file

@ -72,6 +72,7 @@ setXMPPCreds :: XMPPCreds -> Annex ()
setXMPPCreds creds = do
f <- xmppCredsFile
liftIO $ do
createDirectoryIfMissing True (parentDir f)
h <- openFile f WriteMode
modifyFileMode f $ removeModes
[groupReadMode, otherReadMode]

View file

@ -1 +1,3 @@
I just compiled ff7810eb83d8372e6206d487c63482d678e0b3d4 and created a new git-annex repository through the setup steps of "git-annex webapp". Then I tried configuring a Jabber account from the webapp. It then failed to create $REPO/.git/annex/creds/xmpp with a "No such file or directory" message because $REPO/.git/annex/creds did not get created. After doing a manual mkdir the Jabber setup went through fine.
> [[Fixed|done]], thanks. --[[Joey]]