bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] du now diagnoses cycles, rather than ignoring them


From: Eric Blake
Subject: Re: [PATCH] du now diagnoses cycles, rather than ignoring them
Date: Wed, 4 Nov 2009 21:30:09 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Jim Meyering <jim <at> meyering.net> writes:

> +      if (symlink_deref_bits == FTS_PHYSICAL
> +          || (symlink_deref_bits == (FTS_COMFOLLOW | FTS_PHYSICAL)
> +              && ent->fts_level != FTS_ROOTLEVEL))

Can't this be simplified?

     if (symlink_deref_bits == FTS_PHYSICAL
         || (symlink_deref_bits == FTS_COMFOLLOW
             && ent->fts_level != FTS_ROOTLEVEL))

-- 
Eric Blake







reply via email to

[Prev in Thread] Current Thread [Next in Thread]