summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42ea9cb)
raw | patch | inline | side by side (parent: 42ea9cb)
author | Kay Sievers <kay.sievers@vrfy.org> | |
Thu, 5 May 2005 23:34:10 +0000 (01:34 +0200) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Thu, 5 May 2005 23:51:46 +0000 (16:51 -0700) |
We may need to create subdirectories, before we can create a
symlink.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
symlink.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
checkout-cache.c | patch | blob | history |
diff --git a/checkout-cache.c b/checkout-cache.c
index 367b9c7991f7e78954805e526d785b715446f1a9..244ebd122601883e15e8aefea33c7daf8249d862 100644 (file)
--- a/checkout-cache.c
+++ b/checkout-cache.c
case S_IFLNK:
memcpy(target, new, size);
target[size] = '\0';
+ create_directories(path);
if (symlink(target, path)) {
free(new);
return error("checkout-cache: unable to create symlink %s (%s)",