Commit d5f415e6 authored by Kay Sievers's avatar Kay Sievers Committed by Linus Torvalds

[PATCH] create subdirs for symlinks

We may need to create subdirectories, before we can create a
Signed-off-by: default avatarKay Sievers <[email protected]>
Signed-off-by: default avatarLinus Torvalds <[email protected]>
parent 42ea9cb2
......@@ -96,6 +96,7 @@ static int write_entry(struct cache_entry *ce, const char *path)
case S_IFLNK:
memcpy(target, new, size);
target[size] = '\0';
if (symlink(target, path)) {
return error("checkout-cache: unable to create symlink %s (%s)",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment