Thread (12 messages) flat view 12 messages, 4 authors, 2016-06-15

Re: [PATCH 4/3] Avoid using 'lstat()' to figure out directories

From: Paolo Bonzini <hidden>
Date: 2016-06-15 22:47:02

Possibly related (same subject, not in this thread)

+		if (ce->name[len]>  '/')
+			break;
+		if (ce->name[len]<  '/')
+			continue;
What about

	if (ce->name[len] < '/') {
		if (strchr(ce->name + len + 1, '/'))
			break;
		else
			continue;
	}

to just punt if we'd go into a directory?  I'm not much worried about 
accessing foo-0001, foo-0002, foo-0003 while looking for foo/a (that 
would be O(number of files in a directory), which is bearable), but 
risking to go down a huge subtree is not very nice.

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