This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: find date fault


Don Sharp wrote:
> 
> Dear Philip,
>         It will be worthwhile to reiterate that /dosd is a real directory on
> which is mounted the root of a FAT partition. ls -F /dosd gives
> 
> $ ls -F dosd
> DCOLON/       ffastun.ffl   ffastun0.ffx  recycled/     users/
> ffastun.ffa   ffastun.ffo   mpsdata/      temp/
> 
> Notice no logical links. Now the surprise
> 
> find dosd -follow -type f -mtime -15 -print
> 
> WORKS!!!
> 
> BTW I would like to forward our communication to cygwin, if you are
> agreeable. Forward it yourself if you prefer.
> 
> Thanks very much
> 
> Don Sharp
> 
> Philip Sainty wrote:
> >
> > Hi Don,
> >
> > > > > cd dosd
> > > > > find * -type f -mtime -15 -print
> > > > >
> > > > > the expected results are obtained.
> > > > >
> > > > >  It would seem that find is not always descending the directories
> > under
> > > > > a mount point.
> > > >
> > > > Ahhh, it (dosd) is a mounted dir?
> > >
> > > Yes, I think that is provoking the error (sometimes). My dosc which is
> > > another mounted FAT drive works OK!
> >
> > Are there symlink'd directories involved, by any chance?
> >
> > cygwin's find doesn't treat these as real directories when given in the
> > pathname, and therefore doesn't enter them unless you specify that
> > all symlinks should be followed!
> >
> > If dsoc and dsod are to all intents and purposes identical structures,
> > however, that really sounds weird.
> >
> > See if this affects things:
> > find dsod -follow -type f -mtime -15 -print
> >
> > -Phil

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]