bug-coreutils is back on-line (I hope)

2006-03-21 Thread Jim Meyering
I've just heard from Justin Baugh that bug-coreutils may be back in business. It's been broken (a result of a hardware failure -- fixed quickly -- that caused a corrupted database (took longer)) since about March 6. ___ Bug-coreutils mailing list Bug-c

Re: dd new iflag= oflag= flags directory, nolinks

2006-03-21 Thread Phillip Susi
What is atomic about having dd do this? open() with O_DIRECTORY to test for existence of a directory is exactly what test does isn't it? If your goal is to test for the existence of a directory then test is what you want to use, not dd. The purpose of dd is to copy/convert data between devic

Re: Bug#354875: /bin/cp directory full vs. disk full messages

2006-03-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Dan Jacobson on 2/28/2006 10:44 PM: > Version: 5.93-5 The latest stable version is 5.94 - consider upgrading. > > Separate "directory full" from "disk full" when giving messages to the > user, else he might never guess the solution. Th

Re: dd new iflag= oflag= flags directory, nolinks

2006-03-21 Thread Paul Eggert
Phillip Susi <[EMAIL PROTECTED]> writes: > What is atomic about having dd do this? open() with O_DIRECTORY to test for > existence of a directory is exactly what test does isn't it? No, because "test -d foo && test -r foo" is _two_ invocations of "test", not one. A race condition is therefore p

document that echo can't be given a NULL

2006-03-21 Thread Dan Jacobson
No way to hand echo or /bin/echo a NULL. $ set a $'\x00' b $ echo $# 3 $ echo A$'\x01'B|wc -c 4 $ echo A$'\x00'B|wc -c 3 $ echo -n `echo -ne 000`|wc -c 0 BASH_VERSION='3.1.0(1)-release' At least the echo docs should say so. ___ Bug-coreutils mailin

Re: dd new iflag= oflag= flags directory, nolinks

2006-03-21 Thread Phillip Susi
Paul Eggert wrote: No, because "test -d foo && test -r foo" is _two_ invocations of "test", not one. A race condition is therefore possible. The race condition is not possible with dd if=foo iflag=directory count=0. Ok, so this allows you to atomically test if the named object is both a

tests/dd/misc patch for typo in noatime test

2006-03-21 Thread Paul Eggert
I installed this patch which I caught by code inspection (I don't have easy access to a kernel with the noatime feature): 2006-03-08 Paul Eggert <[EMAIL PROTECTED]> * tests/dd/misc: iflags->iflag. This fixes a typo that meant the noatime test never tested anything. --- tests/d

ptx --copyright

2006-03-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is it time to retire 'ptx --copyright' in favor of the standard - --version/--help used by all the other coreutils? If so, I can prepare a patch that removes this redundant option, and touches up NEWS and coreutils.texi accordingly. - -- Life is shor

Re: root-dev-ino.c limitation

2006-03-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 3/3/2006 9:53 AM: > > Why do you want to merge this change with the > already-big basename/dirname one? > OK, I'll send the root-dev-ino patch separately from the basename/dirname one. > Thanks, this does look good. > Wou

Re: Remove Utility- need guidance

2006-03-21 Thread Jim Meyering
vineet chadha <[EMAIL PROTECTED]> wrote: > I a grad at Univ of Florida and working to develop an application > (copy-on-write) for my research. When working on it, I found remove > utility "circular directory test" little intriguing. Here is the reason: > > Modern operating system put the in-core i

Re: document that echo can't be given a NULL

2006-03-21 Thread Paul Jarc
Dan Jacobson <[EMAIL PROTECTED]> wrote: > No way to hand echo or /bin/echo a NULL. For /bin/echo, that's because execve() uses null-terminated strings. For bash's builtin echo, it could be done, but then it would be inconsistent with external commands, which might be surprising. paul _

How to fix an existing translation

2006-03-21 Thread Ismail Donmez
Hi all, I am with the Pardus Linux team [1] , which is a sponsored project by the Turkish government via TUBITAK [2]. We found a problem in coreutils Turkish translation and I wonder whats the correct way to send it? Should I send a patch here or something else? Regards, ismail [1] http://www

Re: document that echo can't be given a NULL

2006-03-21 Thread Eric Blake
> No way to hand echo or /bin/echo a NULL. You mean NUL, not NULL. And printf can do it. > $ set a $'\x00' b > $ echo $# > 3 > $ echo A$'\x01'B|wc -c > 4 > $ echo A$'\x00'B|wc -c > 3 Here, command substitutions strip all NULs from the command's output. POSIX doesn't specify whether this behavi

FYI: cycle-check bug: the next step

2006-03-21 Thread Jim Meyering
There was a weakness in the cycle-check module, described here: http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/6600 I've just fixed fts.c (via the changes to fts-cycle.c, see below) so that it too avoids the problem. At the same time, I've factored the simple definition of SAME_INODE

rm -r can be tricked into reporting non-existent cycle

2006-03-21 Thread Jim Meyering
I wrote: > 2006-03-10 Jim Meyering <[EMAIL PROTECTED]> > > * src/remove.c (AD_pop_and_chdir): Fix a bug whereby a user with > write access to a directory being removed could cause the removal > of that directory to fail with an erroneous diagnostic about a > directory cycl

test: posting through gmane.comp.gnu.core-utils.bugs

2006-03-21 Thread Jim Meyering
Testing whether articles posted to Gmane make it back to the bug-coreutils@gnu.org mailing list... ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-c

[patch #4978] hexadecimal support for dd

2006-03-21 Thread anonymous
URL: Summary: hexadecimal support for dd Project: GNU Core Utilities Submitted by: None Submitted on: Fri 03/17/06 at 13:11 Category: None Prio

controlling stdio buffering

2006-03-21 Thread Pádraig Brady
I was trying today to filter my access.log apache log with some coreutils and was annoyed by the default buffering applied by glibc. I was trying to do `tail -f ~/access.log | cut ... | uniq` but I was only getting output when cut had more than 4K written to stdout. So how to control this? Well ea

Re: Bug#355810: coreutils: pwd fails on bind mount

2006-03-21 Thread Jim Meyering
Kenshi Muto <[EMAIL PROTECTED]> wrote: > At Wed, 08 Mar 2006 08:59:55 +0100, > Jim Meyering wrote: >> Kenshi Muto <[EMAIL PROTECTED]> wrote: >> So far, I am unable to reproduce the failure on ia32. ... >> also, please run the failing command under strace, e.g. >> >> cd /home/kmuto/d-i >> strace

Bug: "echo -e "\0NNN" doesn't require leading '0'

2006-03-21 Thread L. Walsh
An incompatibility in echo has crept into the gnu version of echo. In extended processing, the leading "0" is no longer required to start an octal sequence. This is not compatible with other extended echo implementations and can cause un-anticipated side effects (like echoing "awk" replacement a

Re: gnulib regex problem

2006-03-21 Thread Paul Eggert
Jim Meyering <[EMAIL PROTECTED]> writes: > -AC_DEFINE([_REGEX_WIDE_OFFSETS], 1, > +AC_DEFINE([_REGEX_LARGE_OFFSETS], 1, Ouch, thanks for the quick fix. exg mentions that there must be a better way, in case glibc ever buys back the _REGEX_LARGE_OFFSETS fix. I'll see if I can do that. _

Re: gnulib regex problem

2006-03-21 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> wrote: ... > 2006-03-16 Paul Eggert <[EMAIL PROTECTED]> > > * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]: > Typedef to long int, not to off_, as POSIX will likely change > in that direction. > > * m4/regex.m4 (gl_REGEX): Don't che

FYI, bug-coreutils list/archive woes

2006-03-21 Thread Jim Meyering
FYI, the web (mailman) database has had problems. People have been working on it. For details and status, see In the mean time, most of the messages missing from the mailman archive can be found on the Gmane mirror,

Re: How to fix an existing translation

2006-03-21 Thread Jim Meyering
Ismail Donmez <[EMAIL PROTECTED]> wrote: > I am with the Pardus Linux team [1] , which is a sponsored project by the > Turkish government via TUBITAK [2]. We found a problem in coreutils Turkish > translation and I wonder whats the correct way to send it? Should I send a > patch here or something e

--preserve (cp is still changing file?)

2006-03-21 Thread The Batterson's
The preserve function isn't working properly. rsync copies over the existing file even though it's the same file. Is cp changing something even though I have --preserve? It doesn't seem to be preserving the time stamp. Please see the script below. # KFI Tech Guy ls -t ~/iPodderData/downloa

Re: df enhancment for removable media

2006-03-21 Thread Kevin R. Bulgrien
Did anything final every come out of this thread. I've written a plug-in script for amaroK that a Suse user is complaining about. I never heard of a system unmounting a disk automagically behind the user's back when a mount was explicitly requested. df is reporting USB media to be have 0 bytes fr

Re: df enhancment for removable media

2006-03-21 Thread Kevin R. Bulgrien
Paul Eggert wrote: > Juergen Weigert <[EMAIL PROTECTED]> writes: > >>> Unless I'm missing something I'd rather not change the default behavor >>> of df, as that would be a compatibility hassle. That is, df shouldn't >>> attempt to mount file systems by default; it should do so only if the >>> us

Bug report (as s/w requests).

2006-03-21 Thread Hugh Sasse
I've tried to subscribe using bug-coreutils-request but I get no response, so I'm sending this in the hope that it will reach a useful destination nonetheless. PASS: not-rewound -: test block-sync-1: stderr mismatch, comparing block-sync-1.E (actual) and block-sync-1.3 (expected) *** block-sync-1

Re: dd new iflag= oflag= flags directory, nolinks

2006-03-21 Thread Olivier Delhomme
Le Mon, 06 Mar 2006 18:20:12 -0500, Phillip Susi disait : > I'm confused. You can't open() and write() to a directory, so how does > it make any sense to ask dd to set O_DIRECTORY? So do I ...I never used open() with a directory, but why shouldn't it be possible ? I looked to the man 2 open pa

Using SORT on Linux

2006-03-21 Thread Oshea, Richard
Not sure if this is a bug or a problem with the way my environment it setup - or the way I'm using sort - But... Given the following data in a file, the sort command does not produce the correct output. I have even tried setting the LC_ALL as suggested in the sort --help (set LC_ALL=C) AG

possible bug in coreutils?

2006-03-21 Thread Scott Griffith
I am not sure if this is as designed, but the following produce results that you would not expect: given the following excerpt from my system log: Mar 18 19:12:40 newer sshd[19518]: Illegal user blah from 127.0.0.1 Mar 18 19:12:40 newer sshd[19518

Re: df enhancment for removable media

2006-03-21 Thread Kevin R. Bulgrien
"Juergen Weigert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi coreutils people! > > On a recent SUSE Linux df became unreliable for e.g. USB-drives. > This is because hald automatically mounts and unmounts such drives > as they are accessed. > > Usually I get something like: >

remove - bug ???

2006-03-21 Thread Vineet Chadha
** Modern operating system put the in-core inode into free list and sometimes re-allocates inode immediately to NEXT creation of file system object. remove UTILITY heavily works on assumption that directory-to-be-deleted is of single thread and not being modified by other user or process. Specifica

Re: df enhancment for removable media

2006-03-21 Thread Phillip Susi
This sounds like an autofs problem. I'm running ubuntu and hal auto mounts removable media when it is inserted. When it is not mounted, df will not show a line for it at all, since df only shows mounted points. I think what you are seeing is an autofs mount point being mounted there which is

Re: Bug: "echo -e "\0NNN" doesn't require leading '0'

2006-03-21 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to L. Walsh on 3/19/2006 1:19 PM: > An incompatibility in echo has crept into the gnu version > of echo. In extended processing, the leading "0" is no > longer required to start an octal sequence. This is not > compatible with other extende

Re: df enhancment for removable media

2006-03-21 Thread Kevin R. Bulgrien
Phillip Susi wrote: > This sounds like an autofs problem. I'm running ubuntu and hal auto > mounts removable media when it is inserted. When it is not mounted, df > will not show a line for it at all, since df only shows mounted points. > I think what you are seeing is an autofs mount point be

Re: --preserve (cp is still changing file?)

2006-03-21 Thread Bob Proulx
The Batterson's wrote: > The preserve function isn't working properly. Thank you for your report. But in order to understand the problem you are having we need more information. The preserve function is working for me and must also be working for many other people otherwise we would have more bu

Re: Using SORT on Linux

2006-03-21 Thread Bob Proulx
Oshea, Richard wrote: > Not sure if this is a bug or a problem with the way my environment > it setup - or the way I'm using sort - But... Given the following > data in a file, the sort command does not produce the correct > output. Are you passing any options to sort? > I have even tried settin