Changing the mod of an entire directory

Paul Howarth paul at city-fan.org
Thu Jul 27 12:34:00 UTC 2006


PFJ wrote:
> Hi,
> 
> I'm packaging vsn 0.7 of XaraLX and have hit a problem. While running
> rpmlint over the debug package, I'm getting a pile of warnings that the
> wxOil directory has the majority (if not all) of the files with
> incorrect permissions set.
> 
> Is there a way to chmod an entire directory within a spec file and
> should it go into %prep?

You probably want something like this in %prep:

find . -name '*.[ch]' | xargs chmod -x

Paul.




More information about the fedora-extras-list mailing list