[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
du -D broken
From: |
Andreas Schwab |
Subject: |
du -D broken |
Date: |
Fri Oct 11 09:07:02 2002 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux) |
$ ln -s /boot A
$ ln -s /bin B
$ du -sD A B
4974 A
du: `B': No such file or directory
2002-10-11 Andreas Schwab <address@hidden>
* src/du.c (count_entry): Also save cwd when dereferencing
arguments and we are at toplevel. Reported by Michal Svec
<address@hidden>.
--- src/du.c 2002/10/11 08:10:46 1.1
+++ src/du.c 2002/10/11 08:11:09
@@ -448,7 +448,8 @@ count_entry (const char *ent, int top, d
to one of those. */
if (strchr (ent, '/')
|| DOT_OR_DOTDOT (ent)
- || (xstat == stat
+ || (((top && opt_dereference_arguments)
+ || xstat == stat)
&& lstat (ent, &e_buf) == 0
&& S_ISLNK (e_buf.st_mode)))
{
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- du -D broken,
Andreas Schwab <=