]> git.ipfire.org Git - thirdparty/git.git/commit - credential-cache--daemon.c
credential-cache--daemon: change to the socket dir on startup
authorJon Griffiths <jon_p_griffiths@yahoo.com>
Tue, 23 Feb 2016 07:16:04 +0000 (02:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Feb 2016 22:48:03 +0000 (14:48 -0800)
commit6e6144905188a76ef75c5418bd48c333adeebdcd
tree23bb7809cc65e736afad1c98ec857df3b041905f
parentbd93b8d9becb01d21871b63e34c2e824c60b1e8c
credential-cache--daemon: change to the socket dir on startup

Changing to the socket path stops the daemon holding open
the directory the user was in when it was started,
preventing umount from working. We're already holding open a
socket in that directory, so there's no downside.

Thanks-to: Jeff King <peff@peff.net>
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential-cache--daemon.c