diff options
author | Joey Hess <joey@kitenet.net> | 2012-11-10 20:48:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-11-10 20:48:45 -0400 |
commit | 2c46d59f41215ebbd4202429e17a1057ea658e71 (patch) | |
tree | 88956f7b31801467da1b5693cbe0a7e8899e5f9b | |
parent | 4b9c25bedf802607b72278403926e4f43c7ec609 (diff) |
fix creation of creds directory for xmpp
-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]] |