git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] create subdirs for symlinks

From
KSKay Sievers <kay.sievers@vrfy.org>
Date
May 5, 2005, 23:34 UTC
Message-ID
<20050505233410.GA1852@vrfy.org>

We may need to create subdirectories, before we can create a symlink.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
---
--- a/checkout-cache.c
+++ b/checkout-cache.c
@@ -96,6 +96,7 @@ static int write_entry(struct cache_entr
 	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)",
Message 1 of 1 in “create subdirs for symlinks”
  1. create subdirs for symlinksKay Sievers, May 5, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.