Michael, what Daniel is saying is that with your strcat() call, you've effectively modified the value for $HOME for your process at least as far as getenv() is concerned. You want something more like
asprintf(&settings.cookie, "%s/.gogdownloader/cookies.txt", getenv("HOME")); which will do a memory allocation for you (though you should check the return value of asprintf for errors). See the getenv(3), strcat(3), and asprintf(3) manpages for more details. Marking this report as invalid, as the bug exists in the application, not the curl library. ** Changed in: curl (Ubuntu) Status: New => Invalid ** Changed in: curl (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/786012 Title: Curl messes up a directory to download to with a cookies file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/786012/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs