]> Savannah Git Hosting - gnulib.git/commitdiff
announce-gen: Fix bug when accessing symlinks.
authorBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 12:49:03 +0000 (13:49 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 25 Dec 2024 14:30:35 +0000 (15:30 +0100)
* build-aux/announce-gen (sizes): Pass the option -L to 'du'.

ChangeLog
build-aux/announce-gen

index 6230cd5ab4dfb4f08c508873d96a575a20fe1e72..fbdd30a36de31049ca4ae739f2c72a41ccc1775e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-01  Bruno Haible  <bruno@clisp.org>
+
+       announce-gen: Fix bug when accessing symlinks.
+       * build-aux/announce-gen (sizes): Pass the option -L to 'du'.
+
 2024-11-26  Bruno Haible  <bruno@clisp.org>
 
        fpurge: Improve configure test.
index f9e20129dda802077b5981e1eabc71dda6bdeec2..d769d7dc1d88b2c514036236b77c1d230edad855 100755 (executable)
@@ -123,7 +123,7 @@ sub sizes (@)
   my %res;
   foreach my $f (@file)
     {
-      my $cmd = "du -h $f";
+      my $cmd = "du -h -L $f";
       my $t = `$cmd`;
       # FIXME-someday: give a better diagnostic, a la $PROCESS_STATUS
       $@