]> git.ipfire.org Git - thirdparty/git.git/commit - path.c
git_mkstemp(): be careful not to overflow the path buffer.
authorJunio C Hamano <gitster@pobox.com>
Thu, 26 Jul 2007 04:34:53 +0000 (21:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Jul 2007 04:34:53 +0000 (21:34 -0700)
commite7a7be8831b159b9a7331b34c3ec6915d4a72190
tree18f6cb3d3977ddc13a2e196eb1357885c6aa2079
parentd58e8d34b019d435b424811c6f972910dfac6f55
git_mkstemp(): be careful not to overflow the path buffer.

If user's TMPDIR is insanely long, return negative after
setting errno to ENAMETOOLONG, pretending that the underlying
mkstemp() choked on a temporary file path that is too long.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
path.c