Code

git-apply: applying a patch to make a symlink shorter.
authorJunio C Hamano <junkio@cox.net>
Thu, 10 Aug 2006 05:47:25 +0000 (22:47 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 10 Aug 2006 05:47:25 +0000 (22:47 -0700)
commit2c71810b90d122abdcc57fc3cb62174d16e77b58
tree79225a991410e83220007dcc04389cf0ecbfe304
parent943d5b73e2adf3cd0d3f72c9a06c75681a4ea3ca
git-apply: applying a patch to make a symlink shorter.

The internal representation of the result is counted string
(i.e. char *buf and ulong size), which is fine for writing out
to regular file, but throwing the buf at symlink(2) was a
no-no.

Reported by Willy Tarreau.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-apply.c
t/t4115-apply-symlink.sh [new file with mode: 0755]