diff options
-rw-r--r-- | Assistant/XMPP/Client.hs | 1 | ||||
-rw-r--r-- | doc/bugs/creds_directory_not_automatically_created.mdwn | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Assistant/XMPP/Client.hs b/Assistant/XMPP/Client.hs index 52485fd09..8ab0c2857 100644 --- a/Assistant/XMPP/Client.hs +++ b/Assistant/XMPP/Client.hs @@ -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] diff --git a/doc/bugs/creds_directory_not_automatically_created.mdwn b/doc/bugs/creds_directory_not_automatically_created.mdwn index 0aaa9b0be..d4e436da4 100644 --- a/doc/bugs/creds_directory_not_automatically_created.mdwn +++ b/doc/bugs/creds_directory_not_automatically_created.mdwn @@ -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]] |