bug#70219: Bug/Issue with timeout and signals

2024-04-06 Thread Andreas Schwab
On Apr 05 2024, "Branden R. Williams" via GNU coreutils Bug Reports wrote:

> That’s not an accurate representation of what the command actually does. The 
> argument after -k MUST be the kill signal code, without the code the command 
> fails. The manpage and help document agree with what you are saying but the 
> execution of the program fails. 

$ timeout -k USR1 1s sleep 10
timeout: invalid time interval ‘USR1’
Try 'timeout --help' for more information.
$ timeout -s KILL 1s sleep 10
Killed

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#70070: FAIL: test-localtime_r

2024-03-29 Thread Andreas Schwab
On Mär 29 2024, Bruno Haible wrote:

> Yes. And make sure that it has a time zone database installed at all.

Why? That doesn't make any sense.





bug#70070: FAIL: test-localtime_r

2024-03-29 Thread Andreas Schwab
FAIL: test-localtime_r
==

test-localtime_r.c:58: assertion 'result->tm_hour == 18' failed
FAIL test-localtime_r (exit status: 134)

FAIL: test-localtime_r-mt
=

thread2 disturbed by thread1!
thread1 disturbed by thread2!
FAIL test-localtime_r-mt (exit status: 134)

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#69939: test utility bug: "test -a -a -a" and "test -o -o -o" fail

2024-03-22 Thread Andreas Schwab
On Mär 22 2024, Pádraig Brady wrote:

> Though I see bash 5.2.26 has issue with it :/
>
>   $ test \( -a \) -a \( -a \)
>   bash: test: `)' expected
>
> bash doesn't like the -a in particular, and is ok with other strings:

That's because in bash -a is ambiguous:

  -a FILETrue if file exists.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





Re: sort dynamic linking overhead

2024-02-26 Thread Andreas Schwab
On Feb 26 2024, Pádraig Brady wrote:

> https://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=3bbdb3938

It's still bad as it adds a hidden dependency that is invisible to rpm.

Also, the regexp in the sed command contains unquoted uses of '.' that
are supposed to be matched literally.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



Re: sort dynamic linking overhead

2024-02-26 Thread Andreas Schwab
On Feb 25 2024, Paul Eggert wrote:

> +/* Dynamically link the crypto library, if it needs linking.  */
> +static void
> +link_libcrypto (void)
> +{
> +#if DLOPEN_LIBCRYPTO && HAVE_OPENSSL_MD5
> +  void *handle = dlopen ("libcrypto.so", RTLD_LAZY | RTLD_GLOBAL);

That only works if libopenssl-devel is installed.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



Re: [PATCH] build: avoid use of C11 specific %t format size spec

2023-08-01 Thread Andreas Schwab
%t is C99

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



bug#64588: BUG: stat -f incorrectly reports a BTRFS device as a tmpfs

2023-07-13 Thread Andreas Schwab
On Jul 13 2023, support wrote:

> # function: is_btrfs
> # parameter: path to a mounted filesystem

A device node is not a path to a mounted filesystem

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#64540: [PATCH] od: exit out on failure to write to stdout

2023-07-09 Thread Andreas Schwab
On Jul 09 2023, Paul Eggert wrote:

> Do you see the same problem if you use 'cat' rather than 'od'? If so, the
> problem isn't with 'od'; it's with the environment, which is somehow set
> up to ignore SIGPIPE. It shouldn't do that, as ignoring SIGPIPE breaks a
> lot of programs, and 'od' would be just one of them.

All other utilities (including cat) handle ignored SIGPIPE correctly.

$ (trap '' PIPE; cat /dev/zero | :)
cat: write error: Broken pipe

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#64390: cksum: cannot --check untagged sums file

2023-07-01 Thread Andreas Schwab
On Jul 01 2023, Christoph Anton Mitterer wrote:

> $ cksum -c sums.untagged 
> cksum: sums.untagged: no properly formatted checksum lines found

$ cksum -a sha512 -c sums.untagged

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#63349: Bug in date when using UTC/GMT timeszones in the TZ variable

2023-05-07 Thread Andreas Schwab
On Mai 07 2023, Eiríkur Hjartarson via GNU coreutils Bug Reports wrote:

> Now the "bug":

It's not a bug.

> $ TZ=Europe/Riga date --iso-8601=minutes -d "2024-01-01T00:00-05:00"
> 2024-01-01T07:00+02:00
>
> $ TZ=UTC+2 date --iso-8601=minutes -d "2024-01-01T00:00-05:00"
> 2023-01-01T03:00-02:00
>
> That is: the first command gives me the time and date in Riga when it's
> midnight at new year's eve in New York.
>
> The second command should do the same but instead gives the time in
> Godthab Greenland.

That's not how TZ works.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
says about the offset:

Indicates the value added to the local time to arrive at Coordinated
Universal Time. ...  If preceded by a '-', the timezone shall be
east of the Prime Meridian; otherwise, it shall be west (which may
be indicated by an optional preceding '+' ).

Thus TZ=UTC+2 means two hours before UTC.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





[PATCH] tests: avoid failure when cp fails for /proc/cpuinfo

2023-04-24 Thread Andreas Schwab
When run under QEmu emulation emulated /proc files have unstable inode
numbers.
---
 tests/cp/proc-short-read.sh | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/cp/proc-short-read.sh b/tests/cp/proc-short-read.sh
index 0f7c9e697..806fe285b 100755
--- a/tests/cp/proc-short-read.sh
+++ b/tests/cp/proc-short-read.sh
@@ -24,7 +24,13 @@ proc_large=/proc/cpuinfo  # usually > 4KiB
 test -r $proc_large || skip_ "your system lacks $proc_large"
 
 # Before coreutils-7.3, cp would copy less than 4KiB of this file.
-cp $proc_large 1|| fail=1
+# Skip this test when run under QEmu emulation where emulated /proc files
+# have unstable inode numbers.
+cp $proc_large 1 2>err \
+  || { fail=1
+   grep 'replaced while being copied' err \
+ && skip_ "File $proc_large is being replaced while being copied"; }
+
 cat $proc_large > 2 || fail=1
 
 # adjust varying parts
-- 
2.40.0


-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



bug#62249: uniq -D long option name missing from man page

2023-03-18 Thread Andreas Schwab
On Mär 18 2023, Pádraig Brady wrote:

> +  -D, --all-repeated[=METHOD]  print all duplicate lines,\n\
> +  optionally separating groups with an empty line;\n\
> +  METHOD={none(default),prepend,separate}\n\

This is wrong.  -D does not take an argument.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#60981: Bug in man page for the "test" command

2023-01-21 Thread Andreas Schwab
The man page already addresses this:

   Except for -h and  -L,  all  FILE-related  tests  dereference  symbolic
   links.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#60489: Programs should exit after EIO from FICLONE or copy_file_range()

2023-01-02 Thread Andreas Schwab
On Jan 02 2023, Pádraig Brady wrote:

> +  /* Note error set is consistent with copy_file_range().  */
> +  bool no_clone_attempted = errno == ENOSYS || is_ENOTSUP (errno)
> +|| errno == EINVAL || errno == EBADF
> +|| errno == EXDEV || errno == ETXTBSY;

Should this be refactored to avoid duplication?

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#59819: Bug Report: [coreutils] echo command interprets wildcards, when read with the 'cat' command from a file, in a for-in loop

2022-12-04 Thread Andreas Schwab
On Dez 04 2022, th3_d0ctor wrote:

> $ echo "*" >b; for i in `cat b`; do echo "$i"; done
> ==> list current working directory instead of printing the wildcard '*'

That's how it is supposed to work, since file name expansion is
performed after all other expansions (just before quote removal).

This is basic shell operation knowledge that everyone using the shell
should remember.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#56710: ls vs. stat display of st_size

2022-07-22 Thread Andreas Schwab
$ ls -l /proc/kcore
-r 1 root root 18446744000862892032 Jun 21 00:00 /proc/kcore
$ stat -c %s /proc/kcore
-72846659584

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#54785: for floating point, printf should use double like in C instead of long double

2022-04-27 Thread Andreas Schwab
On Apr 27 2022, Paul Eggert wrote:

> Any proposal to change 'long double' to always output leading 0 or 1 needs
> to deal with the fact that this'd lengthen the output string.

The real reason for not using that format is that 64 bits can be
conveniently formatted without having to shift around the mantissa, and
having to handle the shifted out bits specially.  For IEEE quad with its
112 bits of mantissa and the hidden bit, this format is again more
convenient.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#54681: timeout: Program called by timeout cannot interact with tty stdin when timeout is called by exec()

2022-04-02 Thread Andreas Schwab
On Apr 02 2022, Zhaofeng Yang wrote:

> A simplest example is `timeout 10 timeout 5 cat`. cat cannot read input
> from tty stdin.

That's because timeout creates a new process group by default.  The
outer timeout instance already runs in its own process group curtesy of
the parent shell (and thus remains in that group), but for the inner
instance the process group no longer matches the terminal process group,
and thus the children cannot read from the TTY.  You can use timeout
--foreground to avoid that.

$ timeout 10 timeout --foreground 5 cat

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#54427: df command doesnt report correct output

2022-03-16 Thread Andreas Schwab
On Mär 16 2022, Fariya F wrote:

> Any idea what is the Overhead blocks and why the Overhead blocks is showing
> a huge number?

Looks like the filesystem superblock has been corrupted.  You should
probably copy the data to a new storage medium.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





Re: fstatat + AT_NO_AUTOMOUNT

2022-03-09 Thread Andreas Schwab
On Mär 09 2022, Paul Eggert wrote:

> I audited gnulib's uses of fstatat and found one fishy one that doesn't
> use AT_NO_AUTOMOUNT, namely, in fts.c where the follow-symlink branch uses
> 'stat' whereas the no-follow-symlink branch uses fstatat without
> AT_NO_AUTOMOUNT. I installed the first patch to cause it be consistent in
> using AT_NO_AUTOMOUNT, which is also consistent with what glibc does

??? In glibc, stat is the same as fstatat(,,,0).

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



bug#46808: Man page of "tail"

2022-02-23 Thread Andreas Schwab
On Feb 27 2021, Reuti wrote:

> I'm not a `groff` expert, but the sequence "\,some-text\/" appears a couple 
> of times. What effect does it have for the formatting as the "," and "/" are 
> not output?

\, and \/ add some space as italic correction, see (groff) Ligatures and
Kerning.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#53982: date (GNU coreutils) 8.30 bug report "17 april 2022 + 37 week 5pm"

2022-02-14 Thread Andreas Schwab
On Feb 13 2022, Stéphane Archer wrote:

> $ date -d "17 april 2022 + 36 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
> 2022-12-25T17:00:00.0Z
> $ date -d "17 april 2022 + 37 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
> 2022-01-01T17:00:00.0Z
> $ date -d "17 april 2022 + 38 week 5pm" +'%G-%m-%dT%H:%M:%S.0Z'
> 2023-01-08T17:00:00.0Z
> ```
> as you can see the input "17 april 2022 + 37 week 5pm" makes date return
> the wrong output for some unknown reason.

It doesn't make sense to use %G without %V, or to use it in place of %Y.

$ date -d "17 april 2022 + 37 week 5pm" +'%G/%V %Y-%m-%dT%H:%M:%S.0Z'
2022/52 2023-01-01T17:00:00.0Z

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#53033: date has multiple "first saturday"s?

2022-01-05 Thread Andreas Schwab
On Jan 05 2022, Darryl Okahata via GNU coreutils Bug Reports wrote:

> $ date -d "first saturday"
> Sat Jan  8 00:00:00 PST 2022
>
> Unless there is some weird definition of "first Saturday", shouldn't this be
> the 1st (New Year's Day)?

Try date --debug.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#52115: Suggestion: LN command should swap TARGET and LINK_NAME if LINK_NAME already exists

2021-11-30 Thread Andreas Schwab
On Nov 29 2021, Bob Proulx wrote:

> The more I think about it the more I think it should say CONTENT
> rather than either TARGET or SOURCE.  Because it is actually setting
> the content of the symbolic link.

A hard link doesn't have content.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#51793: FAIL: tests/misc/env-signal-handler

2021-11-13 Thread Andreas Schwab
On Nov 12 2021, Pádraig Brady wrote:

> I've never seen this, and I can't see the race.

There is an obvious race: if env needs more than .1 seconds to set the
SIGINT handler.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#51793: FAIL: tests/misc/env-signal-handler

2021-11-13 Thread Andreas Schwab
https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:Factory/coreutils/s/s390x

./tests/misc/env-signal-handler.sh: line 91:  8508 Killed  env 
timeout --verbose --kill-after=.1 --signal=INT .1 sleep 10 > /dev/null 2> err5
--- exp-err52021-11-13 09:14:29.837716890 +
+++ err52021-11-13 09:14:29.767716890 +
@@ -1 +1,2 @@
 timeout: sending signal INT to command 'sleep'
+timeout: sending signal KILL to command 'sleep'
./tests/misc/env-signal-handler.sh: line 111:  8525 Killed  env 
timeout --verbose --kill-after=.1 --signal=INT .1 env --ignore-signal=INT sleep 
10 > /dev/null 2> err6t
./tests/misc/env-signal-handler.sh: line 127:  8551 Killed  env 
timeout --verbose --kill-after=.1 --signal=INT .1 env --ignore-signal sleep 10 
> /dev/null 2> err7t
FAIL tests/misc/env-signal-handler.sh (exit status: 1)

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#51793: FAIL: tests/misc/env-signal-handler

2021-11-13 Thread Andreas Schwab
On Nov 12 2021, Pádraig Brady wrote:

> On 12/11/2021 19:25, Andreas Schwab wrote:
>> --- exp-err6   2021-11-11 22:58:04.360716802 +
>> +++ err6   2021-11-11 22:58:04.752716821 +
>> @@ -1,2 +1 @@
>>   timeout: sending signal INT to command 'env'
>> -timeout: sending signal KILL to command 'env'
>
> The above is for the previous command not the following.
>
>> ./tests/misc/env-signal-handler.sh: line 127: 26396 Killed  
>> env timeout --verbose --kill-after=.1 --signal=INT .1 env --ignore-signal 
>> sleep 10 > /dev/null 2> err7t
>> FAIL tests/misc/env-signal-handler.sh (exit status: 1)
>
> Could you paste a bit more context from the previous command.

This is the complete output.

> I presume this is a race that you're seeing rarely.

Yes.

> I've never seen this, and I can't see the race.

Try adding load to the system.

> What file system, kernel, shell are you using.

https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:Factory/coreutils/r/riscv64

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#51793: FAIL: tests/misc/env-signal-handler

2021-11-12 Thread Andreas Schwab
--- exp-err6   2021-11-11 22:58:04.360716802 +
+++ err6   2021-11-11 22:58:04.752716821 +
@@ -1,2 +1 @@
 timeout: sending signal INT to command 'env'
-timeout: sending signal KILL to command 'env'
./tests/misc/env-signal-handler.sh: line 127: 26396 Killed  env 
timeout --verbose --kill-after=.1 --signal=INT .1 env --ignore-signal sleep 10 
> /dev/null 2> err7t
FAIL tests/misc/env-signal-handler.sh (exit status: 1)

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#50151: Coreutils, aarch64 and chroot

2021-08-26 Thread Andreas Schwab
On Aug 26 2021, Frans de Boer wrote:

> I was not sure, but I tried the same also with x86_64 cross compiled
> programs using qemu-i386, which worked.

Of course, they can be natively executed.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size"

2021-08-20 Thread Andreas Schwab
There is stat and numfmt.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#45648: `dd` seek/skip which way is up?

2021-01-04 Thread Andreas Schwab
On Jan 03 2021, Bela Lubkin wrote:

> diff --git a/doc/coreutils.texi b/doc/coreutils.texi
> index e9dd21c4e..417857c5e 100644
> --- a/doc/coreutils.texi
> +++ b/doc/coreutils.texi
> @@ -9100,6 +9100,15 @@ Skip @var{n} @samp{obs}-byte blocks in the output
> file before copying.
>  if @samp{oflag=seek_bytes} is specified, @var{n} is interpreted
>  as a byte count rather than a block count.
>
> +@item oseek
> +@item iseek

The second @item needs to be @itemx.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#42135: [PATCH] Fix spurious testsuite failure

2020-06-30 Thread Andreas Schwab
* tests/dd/stats.sh: Bump timeout.
---
 tests/dd/stats.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dd/stats.sh b/tests/dd/stats.sh
index 22ba3b014..fe5302de8 100755
--- a/tests/dd/stats.sh
+++ b/tests/dd/stats.sh
@@ -50,7 +50,7 @@ for open in '' '1'; do
 
   # dd will block on open until fifo is opened for reading.
   # Timeout in case dd goes away erroneously which we check for below.
-  timeout 20 sh -c 'wc -c < fifo > nwritten' & pid2=$!
+  timeout 60 sh -c 'wc -c < fifo > nwritten' & pid2=$!
 
   # Send lots of signals immediately to ensure dd not killed due
   # to race setting handler, or blocking on open of fifo.
-- 
2.27.0


-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#42034: option to truncate at end or should that be default?

2020-06-24 Thread Andreas Schwab
On Jun 24 2020, L A Walsh wrote:

> A second option would be to truncate the file to the last position
> written.

$ truncate -r $src $dest

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#41634: 'timeout' returning 124 and 133

2020-06-01 Thread Andreas Schwab
On Mai 31 2020, Jonny Grant wrote:

> Could the 124 and 137 be documented on the man page?

What's wrong with the last paragraph in the DESCRIPTION section?

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#41518: Bug in od?

2020-05-30 Thread Andreas Schwab
On Mai 29 2020, Yuan Cao wrote:

> It just feels strange because the order does not reflect the order of the
> characters in the file.

But that's not true.  It reflects exactly how 2-byte numbers are stored
in memory on your system.  If you want to make a connection with
characters, you need to think about UCS-2 characters.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#41554: chmod allows removing x bit on chmod without a force flag, which can be inconvenient to recover from

2020-05-27 Thread Andreas Schwab
On Mai 26 2020, Will Rosecrans wrote:

> "chmod a-x $(which chmod)" not a particularly likely thing for a user to
> try to do directly, but it is conceivable for some sort of script to
> attempt it by accident because of a bug, and it would make the system
> inconvenient to recover.

It will likely fail with EPERM.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#40958: date command give current time zone regardless of seconds since epoch requested.

2020-04-29 Thread Andreas Schwab
>From <https://en.wikipedia.org/wiki/British_Summer_Time>:

A further inquiry during 1966–1967 led the government of Harold
Wilson to introduce the British Standard Time experiment, with
Britain remaining on GMT+1 throughout the year. This took place
between 27 October 1968 and 31 October 1971, when there was a
reversion to the previous arrangement.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





bug#38627: uniq -c gets wrong count with non-ascii strings

2020-02-23 Thread Andreas Schwab
On Feb 23 2020, Pádraig Brady wrote:

> On 17/12/2019 17:25, Roy Smith wrote:
>> I stopped short of actually building uniq.c from source (bootstrap, 
>> prerequisites, ...), but looking at the code, it looks like the call chain 
>> is:
>>
>> different()
>> xmemcoll()
>> memcoll()
>> strcoll()
>>
>> so I tried a little test at the strcoll() level:
>>
>> #include 
>> #include 
>> #include 
>>
>> int
>> main (int argc, char **argv)
>> {
>>unsigned char null[] = {
>>
>>  0342, 0201, 0277, 0341, 0265, 0230, 0313, 0241, 0313, 0241, 0
>>};
>>unsigned char iraq[] = {
>>  0334, 0245, 0334, 0235, 0334, 0252, 0334, 0220, 0334, 0251, 0};
>>
>>printf("%s\n", null);
>>printf("%s\n", iraq);
>>
>>int m = strcoll(null, iraq);
>>printf("m = %d\n", m);
>> }

This lacks setlocale.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





Re: feature request: self join from stdin

2019-10-20 Thread Andreas Schwab
On Okt 20 2019, Nomen Nescio  
wrote:

> Do you think the following coproc solves the problem?
> A join or paste prints expected results.
> Curiously cat or tac will block the process.
> Can you explain why join/paste finish the process whereas cat/tac block it?

Because join and paste simultanously read both files, whereas cat and
tac read one file after the other.  Then tee blocks on stdout because
nobody drains the pipe buffer.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



bug#28927: ln -fs dir name doesn't force

2017-10-21 Thread Andreas Schwab
On Okt 21 2017, "Sven C. Dack" <sven.c.d...@sky.com> wrote:

> The link should have been set to "bar" with the "-f" or "--force" option,
> shouldn't it?

The file baz/bar has been overwritten.  You need to use -n if you want
to overwrite a link to a directory.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#28859: Segmentation fault with NULL pointer dereference in 'stty'

2017-10-17 Thread Andreas Schwab
On Okt 17 2017, Pádraig Brady <p...@draigbrady.com> wrote:

> Updated patch attached. I mistakenly thought getopt would
> permute the argv so NULLs were at the end.  The attached
> caters for NULLs interspersed in the argv[].

This has nothing to do with getopt, the first pass explicitly overwrites
the arguments that were already parsed.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#28506: coreutils 8.28 test suite hangs on APFS filesystem

2017-09-24 Thread Andreas Schwab
On Sep 23 2017, Pádraig Brady <p...@draigbrady.com> wrote:

> Offlist Jack sent a profile showing /usr/bin/FILE was waiting on input.
> That was the result of a silly typo in the script, which the attached
> should fix.  I don't know what that command does,

That's file(1) trying to analyze '-'.

> nor why it's specifically a problem on APFS,

Presumably APFS is case insensitive.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





[PATCH] nproc: fix indentation of usage output

2017-07-09 Thread Andreas Schwab
* src/nproc.c (usage): Align output.
---
 src/nproc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nproc.c b/src/nproc.c
index fdcce591f4..d7455db70f 100644
--- a/src/nproc.c
+++ b/src/nproc.c
@@ -61,8 +61,8 @@ which may be less than the number of online processors\n\
 \n\
 "), stdout);
   fputs (_("\
- --all   print the number of installed processors\n\
- --ignore=N  if possible, exclude N processing units\n\
+  --all  print the number of installed processors\n\
+  --ignore=N if possible, exclude N processing units\n\
 "), stdout);
 
   fputs (HELP_OPTION_DESCRIPTION, stdout);
-- 
2.13.2

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



bug#26741: Numeric sort in ls

2017-05-02 Thread Andreas Schwab
On Mai 01 2017, Tony Malykh <anton.mal...@gmail.com> wrote:

> It appears that version sort (-v) option achieves exactly that.
> However, the problem with it is that it seems to be incompatible with
> extension sort (-X) option.

This isn't limited to these two option.  Generally, ls only supports a
single sort option, with later options overriding previous ones.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#25388: Bug in ls, kills existing scripts reading "ls" -1 as input

2017-01-08 Thread Andreas Schwab
On Jan 06 2017, L A Walsh <coreut...@tlinx.org> wrote:

> The new ls doesn't maintain backwards compatibility.
> The default options now add extraneous quotes to
> some filenames.
>
> Anyplace one uses 'ls -1' to read 1 file/line
> now breaks.
>
> This is a regression as it breaks existing
> scripts and behavior.

Does it?

$ touch 'a b'
$ ls -1 | grep "'"

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#24744: coreutils: dircolors - recognize both st and stterm

2016-10-20 Thread Andreas Schwab
On Okt 20 2016, Jari Aalto <jari.aa...@cante.net> wrote:

> Background:
>
> Debian has packaged the "st" (simple term) under name
> "stterm" and named the command repectively. This has to
> do with not profiliterating /usr/bin with two lettter
> commands that are not system commands. Terminal
> commands, like st, are not in that cateory.
>
> Users are recomended to use standard shell feature like:
>
> alias st=stterm
>
> Currently dircolors recognizes terminal "st".
>
> It would be nice if dircolors also recognized terminal with
> name "stterm".

Why can't stterm continue to use the "st" terminal?

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#24561: Unmathematical bc exponentiation behavior

2016-09-28 Thread Andreas Schwab
On Sep 28 2016, "Martens, Tobias" <tobias.mart...@stud.uni-goettingen.de> wrote:

> echo "-(1)^2" | bc
> 1
>
> I would have expected -1. This behavior is unmathematical and very confusing, 
> because otherwise bc acts quite logic.
> Not sure if it is mandated by POSIX

Unary - has higher precedence than ^, thus it is parsed as (-(1))^2.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#23677: sort --debug not ignoring punctuation when sort does

2016-06-02 Thread Andreas Schwab
Karl Berry <k...@freefriends.org> writes:

> Due to the locale rules, the punctuation characters are being ignored
> (presumably),

They are not ignored, just considered only secondary, if the first order
characters didn't provide an ordering.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#23422: stat -c %N returns strange results for file names including

2016-05-04 Thread Andreas Schwab
Ruediger Meier <sweet_...@gmx.de> writes:

> Anyways the incompatible change is IMO not acceptable. %N is probably 
> most likely used in scripts which rely on the known style.

The style was never documented (and still isn't).

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#22568: "grep ... | tee file" drops the 'n' in its output

2016-02-05 Thread Andreas Schwab
oldefoxx <oldef...@cox.net> writes:

> IFS=\n

This is the same as IFS=n.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#22455: sort-V not sorting correctly when minor version decimal places differ

2016-01-24 Thread Andreas Schwab
Vashti <vashti...@gmail.com> writes:

> Hi, I'm having an issue with a script using coreutils 8.25. Asked to sort
> two version numbers, 8.49 and 8.5, it returns them in the wrong order, with
> the lowest value second:
>
> $ echo -e '8.49\n8.5' | sort -V
> 8.5
> 8.49

5 < 49, so that looks correct.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#21603: touch silently ignores '-d 2014'

2015-10-02 Thread Andreas Schwab
George Shuklin <george.shuk...@gmail.com> writes:

> touch -d 2014 /tmp/new_file
>
> is not changing date for the file. All other formats (f.e. -d 
> 2014-01-01) work fine.

Try date -d 2014 to see what it gets.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#21571: [patches] some small message improvements

2015-09-27 Thread Andreas Schwab
Pádraig Brady <p...@draigbrady.com> writes:

> While this new wording doesn't overlaps with other descriptions,
> the original wording comes from POSIX.  I don't know that the distinction
> here is TBH. Perhaps onlret relates to input while onlcr relates to output?

<http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap11.html#tag_11_02_03>

 If ONLCR is set, the NL character shall be transmitted as the CR-NL
 character pair. If OCRNL is set, the CR character shall be transmitted
 as the NL character. If ONOCR is set, no CR character shall be
 transmitted when at column 0 (first position). If ONLRET is set, the NL
 character is assumed to do the carriage-return function; the column
 pointer shall be set to 0 and the delays specified for CR shall be
 used. Otherwise, the NL character is assumed to do just the line-feed
 function; the column pointer remains unchanged. The column pointer
 shall also be set to 0 if the CR character is actually transmitted.

So ONLRET is mostly about properly keeping track of the column.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





bug#21571: [patches] some small message improvements

2015-09-27 Thread Andreas Schwab
Pádraig Brady <p...@draigbrady.com> writes:

> On 27/09/15 08:58, Benno Schulenberg wrote:
>> @item onlcr
>> @opindex onlcr
>> @cindex newline, translating to crlf
>> -Translate newline to carriage return-newline.  Non-POSIX@.  May be
>> +Translate newline to carriage return + newline.  Non-POSIX@.  May be
>>  negated.
>
> Better thanks.
>
>>  @item onocr
>> @@ -13918,7 +13918,7 @@ May be negated.
>>  
>>  @item onlret
>>  @opindex onlret
>> -Newline performs a carriage return.  Non-POSIX@.  May be negated.
>> +Translate newline to carriage return.  Non-POSIX@.  May be negated.

BTW, non-POSIX is misleading.  Most of those extensions are now part of
POSIX, but XSI shaded.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





Re: rm should exit immediately if the user cannot write to the parent directory

2015-09-04 Thread Andreas Schwab
Alex Henrie <alexhenrie24-re5jqeeqqe8avxtiumw...@public.gmane.org>
writes:

> I'd like to see the standard changed so that once rm determines that
> the file is read-only, it may optionally check that the file can
> actually be deleted and skip the prompt if it cannot.

That assumes that it is actually possible to determine this condition
reliably.  There is also the problem of TOCTOU.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



Re: What is the best way to touch a file and set its time of the last time of a bunch of other files?

2015-08-07 Thread Andreas Schwab
Andreas Schwab schwab-td1emuhucqxl1znqvxd...@public.gmane.org writes:

 Peng Yu 
 pengyu.ut-re5jqeeqqe8avxtiumwx3w-xmd5yjdbdmrexy1tmh2...@public.gmane.org 
 writes:

 Hi, `touch -r` allows one to set the time of a file same as a
 reference file. What if one wants to set the time to be the last time
 of multiple files? Is there an easy way to do so?

 $ touch -d @$(stat -c %s $files | sort -n | tail -n1) $file
%Y

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



Re: What is the best way to touch a file and set its time of the last time of a bunch of other files?

2015-08-07 Thread Andreas Schwab
Peng Yu pengyu.ut-re5jqeeqqe8avxtiumw...@public.gmane.org writes:

 Hi, `touch -r` allows one to set the time of a file same as a
 reference file. What if one wants to set the time to be the last time
 of multiple files? Is there an easy way to do so?

$ touch -d @$(stat -c %s $files | sort -n | tail -n1) $file

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



bug#21094: cp: add option to sort when copying

2015-07-20 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 For the progress use case, one can use rsync,
 or perhaps an explicit progress option in cp.

rsync also sorts.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#21084: rm appears to no longer be POSIX compliant (as of 2013 edition) re: deleting empty dirs and files under path/.

2015-07-18 Thread Andreas Schwab
Linda Walsh coreut...@tlinx.org writes:

 But step 4 on that page says that rm should remove empty directories
 without requiring other special switches.

Please read step 2a.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#21084: rm appears to no longer be POSIX compliant (as of 2013 edition) re: deleting empty dirs and files under path/.

2015-07-18 Thread Andreas Schwab
Linda Walsh coreut...@tlinx.org writes:

 In looking at the 2013 specification for rm
 (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm.html),

 it no longer says to stop processing if the path basename equals
 . or ... 

If either of the files dot or dot-dot are specified as the basename
portion of an operand (that is, the final pathname component) or if an
operand resolves to the root directory, rm shall write a diagnostic
message to standard error and do nothing more with such operands.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





Re: Leap Second 2015-06-30 23:59:60 UTC

2015-06-30 Thread Andreas Schwab
Bob Proulx bob-5cAygf9QrE/qt0dzr+a...@public.gmane.org writes:

 Hmm...  I don't know.  Should this work?

No. POSIX doesn't have leap seconds.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



bug#20733: coreutils build problem

2015-06-04 Thread Andreas Schwab
Paul Eggert egg...@cs.ucla.edu writes:

 --- a/Makefile.am
 +++ b/Makefile.am
 @@ -195,7 +195,8 @@ check-git-hook-script-sync:
  # the selected tools when installing.
  install-exec-hook:
   $(AM_V_at)ctrans=$$(printf coreutils | sed -e $(transform));  \
 - for p in $(single_binary_progs); do \
 + for p in x $(single_binary_progs); do   \
 +   test $$p = x  continue; \

A better way to solve that is to use a shell variable:

progs='$(single_binary_progs)'; \
for p in $$progs; do

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





[PATCH] nproc: fix indentation of usage output

2015-05-10 Thread Andreas Schwab
* src/nproc.c (usage): Align output.
---
 src/nproc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nproc.c b/src/nproc.c
index 63c78cd..8118415 100644
--- a/src/nproc.c
+++ b/src/nproc.c
@@ -61,8 +61,8 @@ which may be less than the number of online processors\n\
 \n\
 ), stdout);
   fputs (_(\
- --all   print the number of installed processors\n\
- --ignore=N  if possible, exclude N processing units\n\
+  --all  print the number of installed processors\n\
+  --ignore=N if possible, exclude N processing units\n\
 ), stdout);
 
   fputs (HELP_OPTION_DESCRIPTION, stdout);
-- 
2.4.0


-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



bug#19933: LC_TIME category in Coreutils

2015-02-23 Thread Andreas Schwab
l...@gnu.org (Ludovic Courtès) writes:

 Mark H Weaver m...@netris.org skribis:

 I tried adding 'glibc-locales' to my system profile, and got this:

 ERROR: union-build: collision between file and directories ((files 
 (/gnu/store/nda1ih2iy8likfipl62afiqs6jwdsfxi-glibc-locales-2.20/share/locale/zh_CN/LC_TIME))
  (dirs 
 (/gnu/store/mgfqcbm31rh738z13xlwh9ld9dm2vfvz-coreutils-8.23/share/locale/zh_CN/LC_TIME)))

 Indeed, in coreutils share/locale/zh_CN/LC_TIME is a directory
 containing a symbolic link coreutils.mo pointing to
 ../LC_MESSAGES/coreutils.mo, whereas in glibc-locales
 share/locale/zh_CN/LC_TIME is a binary file.

 Any ideas how to resolve this conflict?

 I would have expected packages other than libc to provide only
 LC_MESSAGES, so I didn’t think such collisions could happen.

glibc's locale files are supposed to reside in $(libdir)/locale, not
$(datadir)/locale, so there is no conflict.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#19456: GNU coreutils - touch / add -v, --verbose option

2014-12-28 Thread Andreas Schwab
jari jari.aa...@cante.net writes:

 To see progress of touched files. With wild cards, it's usually
 not obvious what files were affected.

(set -x; touch *)

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#19218: Inconsistent spacing of output of ls --full-time [file argument]

2014-11-29 Thread Andreas Schwab
Michael Salem m...@michaels.demon.co.uk writes:

 I was trying to use it to extract file timestamps using cut,

Don't do that.  Use stat(1) instead.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#5926: feature request: mv -p to create missing target dir

2014-10-20 Thread Andreas Schwab
Bob Proulx b...@proulx.com writes:

 The mv command causes an atomic rename(2) to occur if on the same file
 system.  That is not possible when using cp + rm.  Therefore mv is
 required.

Also, you can rename a file that you cannot read.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#18531: [PATCH] man: Fix an inverted test that prevented dummy-man from working

2014-09-22 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 On 09/22/2014 10:53 AM, Alban Bedel wrote:
 The test for the argument count was broken, the upper limit test used
 less-or-equal 1 instead of greater than 1.
 ---
  man/dummy-man | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/man/dummy-man b/man/dummy-man
 index bf31912..65b85d5 100755
 --- a/man/dummy-man
 +++ b/man/dummy-man
 @@ -39,7 +39,7 @@ while test $# -gt 0; do
  done
  
  test $# -gt 0 || fatal_ missing argument
 -test $# -le 1 || fatal_ too many non-option arguments
 +test $# -gt 1 || fatal_ too many non-option arguments
  
  baseout=`basename_ $output`
  sed 's/^/WARNING: /' 2 END

 Nice one.

Huh?

$ man/dummy-man foo
man/dummy-man: too many non-option arguments

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#18428: coreutils binary breaks coreutils documentation

2014-09-08 Thread Andreas Schwab
Bob Proulx b...@proulx.com writes:

 For instance, in the touch(1) man page:

   The full documentation for touch is maintained as a Texinfo manual.  If
   the info and touch programs are properly installed at  your  site,  the
   command

  info coreutils 'touch invocation'

   should give you access to the complete manual.

 This is now incorrect (as of 8.23?), because it gives the page:

info touch still works, which is equivalent to info '(coreutils)touch
invocation'.

 Note: Since the coreutils utility doesn't seem to exist in Debian, this
 section could be removed, but this problem may reappear in the future.
 So, it's better to use the capital letter C.

Having info dir entries only differing in case seems like a bad idea.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#18057: [PATCH] Find tail.c in srcdir, not builddir

2014-07-26 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 Bernhard was referring to the other instances with VPATH issues,
 that may only be passing now accidentally.

Please don't mix unrelated issues.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#18057: [PATCH] Find tail.c in srcdir, not builddir

2014-07-23 Thread Andreas Schwab
Bernhard Voelker m...@bernhard-voelker.de writes:

 On 07/19/2014 05:26 PM, Andreas Schwab wrote:
 diff --git a/tests/tail-2/inotify-race.sh b/tests/tail-2/inotify-race.sh
 index c25f354..7140871 100755
 --- a/tests/tail-2/inotify-race.sh
 +++ b/tests/tail-2/inotify-race.sh
 @@ -37,7 +37,7 @@ case $(cat gdb.out) in
   *) skip_ can't run gdb;;
   esac

 -break_src=$abs_top_builddir/src/tail.c
 +break_src=$abs_top_srcdir/src/tail.c
   break_line=$(grep -n ^tail_forever_inotify $break_src) || 
 framework_failure_
   break_line=$(echo $break_line | cut -d: -f1) || framework_failure_


 Thanks for the patch.
 However, what's wrong with $abs_top_builddir?

Is that a serious question?

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#18062: [PATCH] chroot: always change to / if not changing credentials

2014-07-20 Thread Andreas Schwab
---
 src/chroot.c | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/chroot.c b/src/chroot.c
index 6c2d63f..079759f 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -269,9 +269,10 @@ main (int argc, char **argv)
   usage (EXIT_CANCELED);
 }
 
-  /* Only do chroot specific actions if actually changing root.
- The main difference here is that we don't change working dir.  */
-  if (! is_root (argv[optind]))
+  /* Only do chroot specific actions if actually changing root or if not
+ changing credentials.  The main difference here is that we don't
+ change working dir.  */
+  if (! is_root (argv[optind]) || !(userspec || groups))
 {
   /* We have to look up users and groups twice.
 - First, outside the chroot to load potentially necessary passwd/group
-- 
2.0.2


-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#18057: [PATCH] Find tail.c in srcdir, not builddir

2014-07-19 Thread Andreas Schwab
diff --git a/tests/tail-2/inotify-race.sh b/tests/tail-2/inotify-race.sh
index c25f354..7140871 100755
--- a/tests/tail-2/inotify-race.sh
+++ b/tests/tail-2/inotify-race.sh
@@ -37,7 +37,7 @@ case $(cat gdb.out) in
 *) skip_ can't run gdb;;
 esac
 
-break_src=$abs_top_builddir/src/tail.c
+break_src=$abs_top_srcdir/src/tail.c
 break_line=$(grep -n ^tail_forever_inotify $break_src) || framework_failure_
 break_line=$(echo $break_line | cut -d: -f1) || framework_failure_
 
-- 
2.0.2


-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#17904: issue with split command

2014-07-04 Thread Andreas Schwab
jayaprakash.vamb...@essent.nl writes:

 Well, as far as splitting it to separate folder is concerned, I am sure the 
 newly created files can never be more than 1000KB. Usually the split up files 
 are around 250KB - 300KB in size.

The default unit for -size is actually 512 bytes, thus the limit is
500KB.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#17904: issue with split command

2014-07-03 Thread Andreas Schwab
jayaprakash.vamb...@essent.nl writes:

 I am using split command to split a large file and later I am renaming file. 
 PFB command.

What does PFB mean?

 find . -size +1000 -exec split -l 1 {\} {}-new \;

This may find the newly created files, splitting them again if any of
the produced files is bigger then 1000 bytes.  You should produce the
output in a separate directory not located below the current one.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





Re: New option for md5sum

2014-04-19 Thread Andreas Schwab
Bernhard Voelker
mail-hqe9kzqpbdrht4tgq10purvvk+yq3...@public.gmane.org writes:

 On 04/19/2014 04:48 AM, Bob Proulx wrote:
 Rather than cut and using an exact number of characters I prefer to
 use awk to cut by fields.  That way it works with all of the *sum
 programs.
 
   $ md5sum /dev/null | awk '{print$1}'

 And there are many other ways:

   # using the field option of cut:
   $ md5sum /dev/null | src/cut -d ' ' -f 1
   d41d8cd98f00b204e9800998ecf8427e

   $ md5sum /dev/null | sed 's/ .*$//'
   d41d8cd98f00b204e9800998ecf8427e

None of them handle quoted file names:

$ md5sum a\\b | awk '{print$1}'
\d41d8cd98f00b204e9800998ecf8427e

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



Re: [PATCH] tests: fix false failure due to xargs usage

2013-12-10 Thread Andreas Schwab
3.206 Line
A sequence of zero or more non- newline characters plus a terminating
newline character.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



Re: [PATCH] tests: fix false failure due to xargs usage

2013-12-09 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 diff --git a/tests/readlink/multi.sh b/tests/readlink/multi.sh
 index 3b91544..dc4ba87 100755
 --- a/tests/readlink/multi.sh
 +++ b/tests/readlink/multi.sh
 @@ -40,7 +40,7 @@ compare exp out || fail=1
  # Note the edge case that the last xargs run may not have a delimiter
  rm out || framework_failure_
  printf '/1\0/1\0/1'  exp || framework_failure_
 -printf '/1 /1 /1' | xargs -n2 readlink -n -m --zero  out || fail=1
 +printf '/1 /1 /1 ' | xargs -n2 readlink -n -m --zero  out || fail=1

Still wrong.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html:

The standard input shall be a text file.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



Re: [PATCH] tests: fix false failure due to xargs usage

2013-12-09 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 A text file doesn't have to have a new line AFAIK,

It does.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



bug#15945: chown: Does now allow setting user and users login group with numerical user ID

2013-11-21 Thread Andreas Schwab
Eric Blake ebl...@redhat.com writes:

 so it looks like we have a bug that if OWNER is numeric, we aren't
 looking up OWNER's login group.

There may not be a unique uid to user name mapping.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#15571: -su: 31: export: : bad variable name

2013-10-09 Thread Andreas Schwab
Eric Blake ebl...@redhat.com writes:

 On 10/09/2013 06:28 AM, rufai mustapha wrote:
 I tried entering into my chroot from acer c7 chromebook using the command
 line
 shell
 sudo startunity
 then, I got the error I made the subject. Is there any way to solve this.
 Am a beginner, and I use ubuntu 12.04 on a 32 bit.

 For starters, are you even sure that you are using coreutils' su?

More likely this is bash being called as -su.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#14951: Cannot rm file

2013-07-25 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 On 07/25/2013 04:03 PM, ryan@bell.ca wrote:
 Cannot delete file:
 
 # rm web.process.heartbeat
 rm: cannot remove `web.process.heartbeat': No such file or directory
 # rm -f web.process.heartbeat
 # ll
 ls: cannot access web.process.heartbeat: No such file or directory
 total 0
 ?? ? ? ? ?? web.process.heartbeat

 Notice the ?  at the start of the file name.
 Seems like you have a file with non standard characters in the name.

I don't think so, it's rather the unknown date.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





Re: Extend cat to have headers like head/tail

2013-05-13 Thread Andreas Schwab
Bob Proulx bob-5cAygf9QrE/qt0dzr+a...@public.gmane.org writes:

 Erik Auerswald wrote:
 Eric Lavarde wrote:
  to check multiple files I often tend to use 'cat *somefiles*' but it's  
  all concatenated and difficult to read, so I switch back to 'head  
  -nSOMETHINGBIG *somefiles*' but it's not optimal and I might miss lines  
  if a file is bigger than expected.
 
 Try head -n-0.

 I like it! 

This is non-standard.  tail -n+1 is portable.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



bug#14383: cp --one-file-system / will not copy whole root filesystem

2013-05-10 Thread Andreas Schwab
Pádraig Brady p...@draigbrady.com writes:

 I suppose you could give the advice to ensure that all
 mounts in a tree should be unmounted to ensure that
 the base file system contents are copied.

The easiest way to uncover all over-mounted files of a filesystem is to
bind-mount it somewhere else.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#14189: ls -d bug ??

2013-04-12 Thread Andreas Schwab
Eric Blake ebl...@redhat.com writes:

 bash-specific:
 $ (shopt -s nullglob; ls -d */ .[!.]/ .??*/)

$ (shopt -s dotglob; ls -d */)

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#13498: cut -f lags a line

2013-01-19 Thread Andreas Schwab
Scott Lamb sl...@slamb.org writes:

 I don't know exactly why the behavior differs based on stdin being a
 tty or not. My best guess is that glibc might have some logic that, if
 stdin is a tty, automatically flushes stdout any time the program
 blocks on stdin.

When a new buffer is read for a line buffered or unbuffered stream,
stdout is flushed.  This is traditional Unix behaviour, but AFAIK not
required by any standard.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#12847: comm wrong output

2012-11-09 Thread Andreas Schwab
gregrwm backuppc-us...@whitleymott.net writes:

 coreutils   8.13-3.2ubuntu2 (quantal)

 using the attached files:
 $  LC_ALL=C sort rqb.2012-11-07. /tmp/pC   #ensure inputs are sorted
 $  LC_ALL=C sort a0/tmp/qC
 $  LC_ALL=C comm -2 /tmp/[pq]C/tmp/-2
 $  LC_ALL=C comm -23 /tmp/[pq]C/tmp/-23

 the 2 comm commands produce identical output!
 oughtn't the latter command only show lines unique to FILE1?

Since the files have nothing in common, -3 has no effect.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#12715: coreutils-8.20: bad dependency information with man page generation

2012-10-24 Thread Andreas Schwab
Stefano Lattarini stefano.lattar...@gmail.com writes:

 There is also a patch available, but it doesn't seem to have
 encountered much acceptance unfortunately:

 http://lists.gnu.org/archive/html/coreutils/2012-09/msg00132.html

The easiest way to solve that is to use order-only dependencies.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





Re: [PATCH 16/17] tests: more resilient about tainted absolute srcdir path

2012-09-04 Thread Andreas Schwab
Jim Meyering jim-oxw1nkzkivjk1umjsbk...@public.gmane.org writes:

 Stefano Lattarini wrote:
 * tests/init.cfg (stty_reversible_init_): Quote '$abs_top_srcdir'
 properly.
 (fiemap_capable_): Quote '$abs_srcdir' properly.
 (require_dirent_d_type_): Likewise.
 ---
  init.cfg | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

 diff --git a/init.cfg b/init.cfg
 index 7edfd0f..13cac74 100644
 --- a/init.cfg
 +++ b/init.cfg
 @@ -266,7 +266,7 @@ stty_reversible_init_()
  {
# Pad start with one space for the first option to match in query 
 function.
stty_reversible_=' '$(perl -lne '/^ *{(.*?),.*\bREV\b/ and print $1' \
 -$abs_top_srcdir/src/stty.c | tr '\n' ' ')
 +$abs_top_srcdir/src/stty.c | tr '\n' ' ')
 ...

 Thanks, but this c-set is unnecessary, since configure itself verifies
 the sanity of $srcdir and $abs_top_srcdir:

Except that $abs_top_srcdir may contain spaces.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.



bug#12339: Bug: rm -fr . doesn't dir depth first deletion yet it is documented to do so.

2012-09-03 Thread Andreas Schwab
Linda Walsh coreut...@tlinx.org writes:

   But you fail to follow the earlier stated POSIX
 requirement:

You failed to read the second paragraph:

If either of the files dot or dot-dot are specified as the basename
portion of an operand (that is, the final pathname component) or if
an operand resolves to the root directory, rm shall write a
diagnostic message to standard error and do nothing more with such
operands.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#12115: Please add tip about using tac to reverse a file byte-by-byte

2012-08-02 Thread Andreas Schwab
Jim Meyering j...@meyering.net writes:

 (note that below there's the added advantage of not having to
 double-quote to include $nl and hence not having to double-backslash)

You can have that with the variable as well.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#12115: Please add tip about using tac to reverse a file byte-by-byte

2012-08-02 Thread Andreas Schwab
Jim Meyering j...@meyering.net writes:

 Andreas Schwab wrote:
 Jim Meyering j...@meyering.net writes:

 (note that below there's the added advantage of not having to
 double-quote to include $nl and hence not having to double-backslash)

 You can have that with the variable as well.

 You're right.  We could write it like this:

 printf '\na\nb'|tac -rs '.\|'$nl

No, you need the quotes around $nl.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#12115: Please add tip about using tac to reverse a file byte-by-byte

2012-08-02 Thread Andreas Schwab
Voelker, Bernhard bernhard.voel...@siemens-enterprise.com writes:

 Jim Meyering wrote (Thursday, August 02, 2012 2:08 PM):

 You need the double quotes around $nl with bash,

Or any other POSIX shell.

 For bash, one solution is:

   $ printf '\na\nb'|tac -rs '.\|'$(printf \n)

No, command substitution strips trailing newlines.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#12115: Please add tip about using tac to reverse a file byte-by-byte

2012-08-02 Thread Andreas Schwab
Eric Blake ebl...@redhat.com writes:

 On 08/02/2012 07:18 AM, Andreas Schwab wrote:
 For bash, one solution is:

 $ printf '\na\nb'|tac -rs '.\|'$(printf \n)
 
 No, command substitution strips trailing newlines.

 So don't make it trailing:

 printf '\na\nb'|tac -rs $(printf '\n\\|.')

It's still a useless command substitution.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#11843: date -s vs encoding bug.

2012-07-02 Thread Andreas Schwab
Jim Meyering j...@meyering.net writes:

 To get the behavior you want (a nominally no-op date-setting command),
 you should use this instead:

 date -s $(date '+%F %T.%N')

That fails to be a no-op during the ambigous end-of-dst period.  Better
use an unambigous format.

# date -s @$(date +%s.%N)

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#11675: stty bad C semantics

2012-06-11 Thread Andreas Schwab
Eric Blake ebl...@redhat.com writes:

 And while there is no way to zero out padding bits by direct assignment,
 I think we _are_ guaranteed that padding bits are zero when doing the
 same initialization as static storage duration if we did not call out
 all the named members.

I think the standard is very clear about the state of padding bytes
[6.2.6.1#6]:

When a value is stored in an object of structure or union type,
including in a member object, the bytes of the object representation
that correspond to any padding bytes take unspecified values.

(6.7.8#10 says nothing about the initial value of any padding bytes.)

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#11472: Message src/fmt.c:285 marked as c-formatted string erroneously

2012-05-14 Thread Andreas Schwab
Petr Pisar petr.pi...@atlas.cz writes:

 The problem is such string does not pass through msgfmt tool while compiling
 the catalog because the '% ' is not a valid printf sequence.

Actually, it is.  The format is 'o' with a space flag.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file system sizes

2012-05-11 Thread Andreas Schwab
Paul Eggert egg...@cs.ucla.edu writes:

 On 05/10/2012 04:04 PM, Nikolaus Rath wrote:
 But why isn't
 it du using statvfs instead of statfs?

 m4/fsusage.m4 says why:

 Do not use statvfs on systems with GNU libc on Linux, because that function
 stats all preceding entries in /proc/mounts, and that makes df hang if even
 one of the corresponding file systems is hard-mounted, but not available.

This is no longer true if the kernel is at least 2.6.36.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file system sizes

2012-05-10 Thread Andreas Schwab
Paul Eggert egg...@cs.ucla.edu writes:

 Am I missing something?

 Hard to day.  You don't mention which operating system you're
 using.  Looking at the source code, if
 df uses statvfs, and if f_frsize is not nonsense, df
 should be using f_frsize, so I don't see a bug here.

statvfs is explicitly rejected with glibc, and there is no alternative
that uses statfs with f_frsize.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





  1   2   3   4   5   6   >