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

Re: [PATCH] Fix merge-recursive on cygwin: broken errno when unlinking a directory

From
Sam Ravnborg <sam@ravnborg.org>
Date
Apr 19, 2007, 18:31 UTC
Message-ID
<20070419183106.GB3396@uranus.ravnborg.org>
In-Reply-To
<alpine.LFD.0.98.0704190932450.9964@woody.linux-foundation.org>
> +		if (status == -3) {
> +			/* something else exists */
> +			error(msg, path, ": perhaps a D/F conflict?");

It would be more helpful it you spelled it out like: Directory/File conflict?

Show 13 quoted lines
> +			return -1;
> +		}
> +		die(msg, path, "");
> +	}
> +
> +	/* Successful unlink is good.. */
> +	if (!unlink(path))
> +		return 0;
> +	/* .. and so is no existing file */
> +	if (errno == ENOENT)
> +		return 0;
> +	/* .. but not some other error (who really cares what?) */
> +	return error(msg, path, ": perhaps a D/F conflict?");
ditto.
I know this was how it looked previously too but thats just a lame excuse.
	Sam
Previous: Linus Torvalds
Message 6 of 6 in “Fix merge-recursive on cygwin: broken errno when unlinking a directory”
  1. Fix merge-recursive on cygwin: broken errno when unlinking a directoryAlex Riesen, Apr 18, 2007
  2. Linus TorvaldsApr 18, 2007
  3. Alex RiesenApr 18, 2007
  4. Alex RiesenApr 19, 2007
  5. Linus TorvaldsApr 19, 2007
  6. Sam RavnborgApr 19, 2007

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.