Re: proposed fix for some race conditions in mkdir and install

2006-09-18 Thread Paul Eggert
Jim Meyering [EMAIL PROTECTED] writes: I initially tried something like that, but got too confused by it, perhaps partly because I wanted to fall back on something like the current approach when mkdirat didn't work (which is a common case these days, even on GNU/Linux systems, alas). What

Re: proposed fix for some race conditions in mkdir and install

2006-09-18 Thread Jim Meyering
Paul Eggert [EMAIL PROTECTED] wrote: Jim Meyering [EMAIL PROTECTED] writes: I initially tried something like that, but got too confused by it, perhaps partly because I wanted to fall back on something like the current approach when mkdirat didn't work (which is a common case these days, even

coreutils-6.2 released [stable candidate]

2006-09-18 Thread Jim Meyering
Coreutils version 6.2 has been released. If you haven't heard about the GNU coreutils, the FAQ is a good place to start: http://www.gnu.org/software/coreutils/faq/ This is mostly a bug-fix release. It may be worthy of the stable label, but since this is the Coreutils, we're being extra careful.

Re: [patch] Get coreutils 6.1 to build on a ANSI 89 compiler

2006-09-18 Thread Jim Meyering
Pádraig Brady [EMAIL PROTECTED] wrote: ... If we are supporting c89 compilers with this patch, wouldn't it be worth going the final step and applying it automatically with configure? It'd be worthwhile to a few people, certainly, and it'd probably avoid a few bug reports. I've been trying not

Re: [Bug 204567] New: base64 -d doesn't accept base64 output

2006-09-18 Thread Simon Josefsson
I agree that this is a bug, and I'm interested in fixing this, but I have little free time right now. I'd prefer that --wrap can be used to indicate at what position the tool should expect CR/LF on decoding. If there isn't a CR/LF at that position, it should abort. Also, there should be one new

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Andreas Schwab
URL: http://savannah.gnu.org/bugs/?17794 Summary: error: possibly undefined macro: gl_LOCK_EARLY Project: GNU Core Utilities Submitted by: schwab Submitted on: Montag 18.09.2006 um 17:29 Category: None

tests/chgrp/basic test failure on Solaris 8 with setgid directory

2006-09-18 Thread Paul Eggert
Here are the symptoms: make[3]: Entering directory `/r/share1/src/coreutils-6.2/tests/chgrp' PASS: no-x PASS: posix-H FAIL: basic ... I tracked it down to what appears to be a typo in tests/chgrp/basic, triggered when the build directory is setgid and the builder has multiple groups. I

[patch] minor typo in lib/getaddrinfo.c from coreutils 6.1

2006-09-18 Thread Petter Reinholdtsen
While building coreutils v6.1 on Tru64 Unix, I found a minor typo breaking the build. Here is a patch to fix it. diff -ur src-6.1/lib/getaddrinfo.c src-6.1-local/lib/getaddrinfo.c --- src-6.1/lib/getaddrinfo.c 2006-08-10 09:17:38.0 +0200 +++ src-6.1-local/lib/getaddrinfo.c

Re: tests/chgrp/basic test failure on Solaris 8 with setgid directory

2006-09-18 Thread Jim Meyering
Paul Eggert [EMAIL PROTECTED] wrote: Here are the symptoms: make[3]: Entering directory `/r/share1/src/coreutils-6.2/tests/chgrp' PASS: no-x PASS: posix-H FAIL: basic ... I tracked it down to what appears to be a typo in tests/chgrp/basic, triggered when the build directory is setgid and

Re: [patch] Get coreutils 6.1 to build on a ANSI 89 compiler

2006-09-18 Thread mwoehlke
Bob Proulx wrote: Petter Reinholdtsen wrote: The ANSI C 89 compilers refuses code that fail to declare variables at the start of the block. I found this problem on RHEL 2.1. The code refused to compile, and I have to move the variables up to the start of the block to get it building. One of

Re: proposed fix for some race conditions in mkdir and install

2006-09-18 Thread Bob Proulx
Jim Meyering wrote: And of course, even with a kernel that supports /proc, you can create a chroot environment that lacks /proc altogether. +1 I just wanted to say that I use chroot environments all of the time. For many uses they are a godsend. I would hate to see behavior introduced that

[patch] Handle alternative getnameinfo() prototype

2006-09-18 Thread Petter Reinholdtsen
To get coreutils 6.1 to build on Tru64 Unix, in addition to the minor typo reported earlier, I had to change the prototype used for getnameinfo() to match the on in /usr/include/netdb.h. This ugly patch solved the issue: diff -ur src-6.1/lib/getaddrinfo.c src-6.1-local/lib/getaddrinfo.c ---

Re: tests/chgrp/basic test failure on Solaris 8 with setgid directory

2006-09-18 Thread Bob Proulx
Jim Meyering wrote: So, ideally, regular testing should include building not only on at least four different file system types, but also with and without a setgid build directory. I am currently testing both with and without sgid directories. The results you have seen for i686-gnu-linux and

fix diagnostic in tests/ls/stat-vs-dirent

2006-09-18 Thread Paul Eggert
Here are the symptoms: ./stat-vs-dirent: test failed: /export/duryea: d_ino(42214) != st_ino(2) ./stat-vs-dirent: This may indicate a flaw in your kernel or file system implem\ entation. ./stat-vs-dirent: This flaw won't impact coreutils, but it may well ./stat-vs-dirent: affect other tools,: not

Re: [patch] Get coreutils 6.1 to build on a ANSI 89 compiler

2006-09-18 Thread Bob Proulx
mwoehlke wrote: I have built coreutils (actually, a nice GNU suite plus a few others like VIM7) on over a half dozen platforms, including Solaris 2.7, Irix, HPUX 11.x, AIX... and of course Linux. These are old systems, but they are still used in production (we keep them because our

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Paul Eggert
Update of bug #17794 (project coreutils): Status:None = Fixed Open/Closed:Open = Closed ___ Follow-up Comment #1: I think that was

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Andreas Schwab
Follow-up Comment #2, bug #17794 (project coreutils): There is no gnulib involved. ___ Reply to this item at: http://savannah.gnu.org/bugs/?17794 ___ Nachricht geschickt von/durch Savannah

Re: [patch] Get coreutils 6.1 to build on a ANSI 89 compiler

2006-09-18 Thread Paul Eggert
mwoehlke [EMAIL PROTECTED] writes: people seem to want to only support GNU software on the latest stable release of Linux That may be true for other packages but it's not true of coreutils. Coreutils is built fairly regularly on older systems, even systems like Solaris 2.6 (released 1997) that

Re: [patch] Get coreutils 6.1 to build on a ANSI 89 compiler

2006-09-18 Thread mwoehlke
Bob Proulx wrote: mwoehlke wrote: I have built coreutils (actually, a nice GNU suite plus a few others like VIM7) on over a half dozen platforms, including Solaris 2.7, Irix, HPUX 11.x, AIX... and of course Linux. These are old systems, but they are still used in production (we keep them

Re: [patch] Get coreutils 6.1 to build on a ANSI 89 compiler

2006-09-18 Thread mwoehlke
Paul Eggert wrote: mwoehlke [EMAIL PROTECTED] writes: people seem to want to only support GNU software on the latest stable release of Linux That may be true for other packages but it's not true of coreutils. Coreutils is built fairly regularly on older systems, even systems like Solaris 2.6

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Paul Eggert
Follow-up Comment #3, bug #17794 (project coreutils): Ah, sorry, I misread the example. I guess the right answer is that coreutils isn't set up to use autoreconf. You can use bootstrap instead; it gets the pieces that autoreconf would get, but omits stuff like the lock module that autoreconf

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Andreas Schwab
Follow-up Comment #4, bug #17794 (project coreutils): There is no bootstrap. ___ Reply to this item at: http://savannah.gnu.org/bugs/?17794 ___ Nachricht geschickt von/durch Savannah

bootstrap changes to use symlinks rather than copies of gnulib

2006-09-18 Thread Paul Eggert
I installed this to change 'bootstrap' along the lines that we discussed earlier: 2006-09-18 Paul Eggert [EMAIL PROTECTED] * bootstrap (symlink_to_gnulib): New function. (cp_mark_as_generated): Use it, to prefer symlinks-to-gnulib to copies-of-gnulib.

rewrite tests/stty/row-col-1 to avoid creating temp file

2006-09-18 Thread Paul Eggert
I noticed that make check left behind a file tests/stty/.saved_size, because I ran it under GNU Emacs on Solaris 8 and the test is skipped in that case. I installed this to fix the little problem: 2006-09-18 Paul Eggert [EMAIL PROTECTED] * tests/stty/row-col-1: Rewrite to avoid

minor improvement in 'shuf -i badrange' diagnostic

2006-09-18 Thread Paul Eggert
`shuf -i 1-x' complained shuf: invalid input range `x', but the invalid range is actually `1-x'. I installed this: 2006-09-18 Paul Eggert [EMAIL PROTECTED] * src/shuf.c (main): Quote the entire range when reporting an invalid one, rather than just the part that contained the

Re: [bug-gnulib] Re: [patch] Handle alternative getnameinfo() prototype

2006-09-18 Thread Bruno Haible
Paul Eggert wrote: It's a bit weird, though, that Tru64 has getnameinfo declared but getaddrinfo is not defined. Is that correct, or am I missing something? OSF/1 4.0 declares neither getnameinfo nor getaddrinfo. OSF/1 5.1 declares both in netdb.h but has this: #if defined (_SOCKADDR_LEN)

chmod a+rwx A B doesn't chmod A before chmoding B

2006-09-18 Thread Paul Eggert
While testing the new mkdir -p stuff I noticed a bug in chmod: it doesn't operate left-to-right as tradition and POSIX require: $ mkdir d d/e $ chmod 0 d/e d $ chmod a+rwx d d/e chmod: cannot access `d/e': Permission denied The last chmod should succeed, but it fails. I installed the

Re: [bug-gnulib] Re: [patch] Handle alternative getnameinfo() prototype

2006-09-18 Thread Paul Eggert
Bruno Haible [EMAIL PROTECTED] writes: OSF/1 4.0 declares neither getnameinfo nor getaddrinfo. OSF/1 5.1 declares both in netdb.h but has this: #if defined (_SOCKADDR_LEN) || defined (_XOPEN_SOURCE_EXTENDED) #define getaddrinfo ngetaddrinfo #else #define getaddrinfo ogetaddrinfo #endif

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Paul Eggert
Update of bug #17794 (project coreutils): Status: Fixed = In Progress Open/Closed: Closed = Open ___ Follow-up Comment #5: You can get

[bug #17794] error: possibly undefined macro: gl_LOCK_EARLY

2006-09-18 Thread Eric Blake
Follow-up Comment #6, bug #17794 (project coreutils): If it serves as any reference point, M4 1.4.6 includes its bootstrap in its tarball. Someone using the tarball is expected to neither run bootstrap nor to run autoreconf (a fact that automake checks during 'make distcheck'), but the files