GNU bug report logs - #6555
stat enhancement

Previous Next

Package: coreutils;

Reported by: A Burgie <dajoker <at> gmail.com>

Date: Fri, 2 Jul 2010 20:55:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 6555 <at> debbugs.gnu.org, A Burgie <dajoker <at> gmail.com>
Subject: bug#6555: stat enhancement
Date: Thu, 19 Aug 2010 17:24:49 +0200
Pádraig Brady wrote:
> On 13/08/10 04:01, A Burgie wrote:
>> I have received confirmation of the completion of my exciting
>> paperwork.  I can send the PDF for proof but at this point all of the
>> legal stuff should be handled.
>
> I updated the patch further, adding a test,
> and fixing a small mem leak in print_stat().
> However I'm wary about pushing as I'm worried
> about bypassing most of the logic from df::show_point().
> I.E. do we lose anything by not using read_file_system_list()?

Hi Pádraig and Aaron,
That patch looks fine.  Thanks to both of you!

I noticed that there is a semantic difference with df.  Running
"df symlink-to-dir" works like "df dir", while "stat --format=%m
symlink-to-dir" operates on the symlink, not on the directory.  That does
seem to be the proper default, given stat's --dereference (-L) option
(which I confirmed does work fine).

It might be worth adding a note in the texinfo doc that people looking
for df-like semantics from %m should use --dereference (-L).




This bug report was last modified 14 years and 273 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.