diff options
author | René Scharfe <l.s.r@web.de> | 2014-07-20 10:00:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-21 09:38:07 -0700 |
commit | 2869b3e5dabdd78b336455ad493951badd35279e (patch) | |
tree | eeab7281991666c46f163c19bb205038b6c01ee4 /Documentation/git-check-ignore.txt | |
parent | annotate: use argv_array (diff) | |
download | tgif-2869b3e5dabdd78b336455ad493951badd35279e.tar.xz |
unix-socket: remove stale socket before calling chdir()
unix_stream_listen() is given a path. It calls unix_sockaddr_init(),
which in turn can call chdir(). After that a relative path doesn't
mean the same as before. Any use of the original path should thus
happen before that call. For that reason, unlink the given path
(to get rid of a possibly existing stale socket) right at the
beginning of the function.
Noticed-by: Karsten Blees <karsten.blees@gmail.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-check-ignore.txt')
0 files changed, 0 insertions, 0 deletions