[Top][All Lists]

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

-fstype doesn't work

From: Han Boetes
Subject: -fstype doesn't work
Date: Sat, 5 Nov 2005 03:01:10 +0100
User-agent: Mutt/1.5.11


I was trying to make a script that searches for files that are
world writable, and I wanted to make sure it only happens on
certain filesystemtypes.

The directive -fstype was ignored so I read the manpage:

       -fstype type
              File is on a filesystem of  type  type.   The  valid  filesystem
              types  vary among different versions of Unix; an incomplete list
              of filesystem types that are accepted on some version of Unix or
              another  is:  ufs, 4.2, 4.3, nfs, tmp, mfs, S51K, S52K.  You can
              use -printf with the %F directive  to  see  the  types  of  your

And then ran the following command:

        find . -printf '%F %p\n'    

And the result was that all files were of the type unknown.

~% find --version
GNU find version 4.2.25
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION 

This problem also exists with 4.2.20

# Han

reply via email to

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