[Bug 1935] ls -l with wildcards produces incorrect output
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Wed Sep 21 12:57:19 EST 2011
https://bugzilla.mindrot.org/show_bug.cgi?id=1935
--- Comment #8 from Damien Miller <djm at mindrot.org> 2011-09-21 12:57:19 EST ---
okay, either of these diffs will fix your bug. I intend to commit both.
The problem is that glob()'s GLOB_KEEPSTAT support (retain the results
of stat() operations in an array) didn't take into account that glob()
sorts its results by default. The first patch implements a sort that
takes the separate array of stat information into account so it doesn't
get out of sync with the pathnames.
Furthermore, "ls" shouldn't bother with glob's internal sorting anyway
because it implements its own sort which might be different. The second
patch disables glob's sort for remote ls operations.
If you are applying the first patch, then please "cd openbsd-compat"
first.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list