Thread (37 messages) flat view 37 messages, 10 authors, 2016-06-15

Re: [PATCH] Add a new lstat implementation based on Win32 API, and make stat use that implementation too.

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:43:32

On Sunday 02 September 2007 20:44, Marius Storm-Olsen wrote:
Johannes Sixt wrote:
quoted
I'm slightly negative about this. For a native Windows project the
executable bit does not matter, and for a cross-platform project this
check is not sufficient, but can even become annoying (think of a file
named 'www.google.com'). So we can just as well spare the few cycles.
Ok, that's fine by me. It was only added for completeness, and with no
benefits I'd say we drop it too.
I'll amend the patch accordingly.
quoted
quoted
 		return 0;
+	}
+	errno = ENOENT;
Of course we need a bit more detailed error conditions, most importantly
EACCES should be distinguished.
Right, you want to do that in a second commit?
Yes, please. Please don't forget to take care of the trailing-slash annoyance.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help