Skip to contentSkip to conversation

_POSIX_SYMLOOP_MAX

DISCUSSION [email protected] 2 participants 4 messages Jun 23, 2004 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 1 line · On Wed, Jun 23, 2004 at 04:35:15PM +0200, [email protected] wrote:

(cf http://marc.theaimsgroup.com/?l=linux-kernel&m=102426036209591&w=2)

Hrm... Actually, after looking through that thread again, I have to admit that I'm not happy with my reaction back then (basically, "it's ugly and pointless, let's forget it unless something saner develops out of it"). It _was_ ugly and broken in that form, all right, but now I wonder how much of the idea behind the current symlink patchkit had come from (successfully forgotten) background thinking of how that something saner might look like ;-/

In case if that's what had happened, I owe Andries an apology for sloppiness - it can be considered as fixed and sanitized version of his idea and all I can say in defense is that I really did not remember his stuff when I came up with that. Which is not worth much, obviously. And in any case I should've checked the archives and look for related stuff that had come up earlier. My apologies. [cc'd to l-k since the symlink stuff had been posted there, possibly with missing credit]

The differences between the current patchkit and patch in question are:
a) no cleanup flags, just a method that does cleanup. Obvious, much
cleaner, easy to do and mentioned as possibility in the original.
b) no special "done" flag for "we don't have anything left for us to
traverse", just the usual check for "no string given" (aka. "is it NULL?").
c) no magic flags => no problem with getting them clobbered
d) no prototype changes, we just call a helper that stores pointer into
array in nameidata. I wonder why Andries hadn't done that, BTW - especially if there was a planned work on removing recursion; in that case array is an obvious thing to do. And that doesn't break existing filesystems.

	e) bunch of leaks in failure paths of foo_follow_link() fixed
	f) ->readlink() cleanup.  It could be actually done in either variant

and is fairly natural thing to do.

#2 lore raw
Quoted 1 line · On Wed, Jun 23, 2004 at 05:11:34PM +0100…

if ... I owe Andries an apology ...

Al, is that you? Never thought that you were able to say such things... But never mind - the only goal is to improve Linux.

A funny coincidence that this came up less than 24 hours after you posted this symlink patchkit.

Andries

#3 lore raw
Quoted 5 lines · Andries Brouwer
Quoted 1 line · On Wed, Jun 23, 2004 at 05:11:34PM +0100…

if ... I owe Andries an apology ...

Al, is that you? Never thought that you were able to say such things...

<raised brows>

So the difference between "bastard and proud of it" and "dishonest bastard" is a new concept for you?

#4 lore raw
Quoted 6 lines · On Wed, Jun 23, 2004 at 07:02:54PM +0100…
Quoted 1 line

Al, is that you? Never thought that you were able to say such things...

<raised brows>

So the difference between "bastard and proud of it" and "dishonest bastard" is a new concept for you?

Nice to meet you - Al, honest bastard.