bug#7489: [coreutils] over aggressive threads in sort

2010-12-06 Thread Paul Eggert
On 12/05/10 03:21, Jim Meyering wrote: > seq -w 20 > exp && tac exp > in > PATH=.:$PATH ./sort --compress-program=dzip -S 1k in > out > > That gets stuck in waitpid (from sort.c's reap), waiting for a > dzip invocation that appears will never terminate. This is also > on that same 4-core

bug#7574: [PATCH]: echo, printf, stat: Allow only up to 8 bit octal input for backslash-escaped chars

2010-12-06 Thread Paul Eggert
As a minor point, both uses like this: '4' <= *p && *p <= '7' can be replaced with something like this: '4' <= *p and similarly, this: '0' <= c && c <= '3' can be replaced with this: c < '4' The replacements are not only shorter, but easier to understand, because otherwise the reader is lef

bug#7574: [PATCH]: echo, printf, stat: Allow only up to 8 bit octal input for backslash-escaped chars

2010-12-06 Thread Eric Blake
On 12/06/2010 09:34 AM, Ondrej Vasik wrote: > Hi, > as reported in RHBZ#660033 > ( https://bugzilla.redhat.com/show_bug.cgi?id=660033 ), echo, printf and > stat allows 3 octal digits without limitation to 8-bit. First, let's look at POSIX, which has slightly different wording in its requirements f

bug#7574: [PATCH]: echo, printf, stat: Allow only up to 8 bit octal input for backslash-escaped chars

2010-12-06 Thread Ondrej Vasik
Hi, as reported in RHBZ#660033 ( https://bugzilla.redhat.com/show_bug.cgi?id=660033 ), echo, printf and stat allows 3 octal digits without limitation to 8-bit. Documentation(manpages, info) refers to "byte with octal value" or "8-bit octal value". Therefore 9-bit octal values should not be allowed.

bug#7572: [PATCH] PAM support for su

2010-12-06 Thread Ludwig Nussel
Distributions that use su from coreutils need PAM support. This patch is a merged version of the patches that are in at least SUSE and RedHat distributions since years. I don't know if anyone ever tried to submit the patch upstream though. So here it is :-) --- configure.ac| 14 +++ src/Mak

bug#7489: [coreutils] over aggressive threads in sort

2010-12-06 Thread Chen Guo
Hi Professor Eggert, On Sun, Dec 5, 2010 at 11:01 PM, Paul Eggert wrote: > On 12/05/2010 09:16 PM, Chen Guo wrote: >> Before saying anything else, I should note that for mutexes, on 4 >> threads 20% of the time there's a segfault on a seemingly innocuous >> line in queue_insert (): >>   node->queu

bug#7568: stat 'i\i' shows 'i\\i'

2010-12-06 Thread Jim Meyering
jida...@jidanni.org wrote: > stat 'i\i' shows 'i\\i'. > Backspaces in filenames are doubled. > stat (GNU coreutils) 8.5 Thanks for the report, but that's a feature, since backslash is used to denote e.g., newline (\n), backspace (\b), etc. in a quoted name: $ ./stat -c %N 'a^Hb' `a\bb' I