This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: lstat on FAT - Was: Problem with find on FAT drives


At 11:15 PM 3/24/2004, you wrote:
>On Wed, Mar 24, 2004 at 09:39:29PM -0500, Pierre A. Humblet wrote:
>>On Wed, Mar 24, 2004 at 04:42:39PM -0500, Christopher Faylor wrote:
>>>On Wed, Mar 24, 2004 at 04:30:57PM -0500, Pierre A. Humblet wrote:
>>>>
>>>>I also had a look at the code and reached pretty much the same conclusion
>>>>as Volker. Replacing all 'isslash (*src)' and 'isslash (src[x])' in
>>>>normalize_posix_path by "isdirsep ()" would yield more consistent results.
>>>>I know this code is delicate but the possible drawback isn't obvious.
>>>
>>>speed disadvantage for nebulous gain.
>> 
>>As you know isdirsep would take 1 extra compare per character.
>>
>>FWIW I see one place where we could avoid the kind of loop that Volker had.
>>
>>I wonder if 
>>      char *p = strrchr (src, '\0');
>>      /* Detect if the user was looking for a directory.  We have to strip the
>>should be inside the symlink loop or outside. I guess that depends if
>>symlink contents ending with / are special (on Sun the final / is stripped in
>>symlinks, dunno about other Unix flavors).
>>
>>Also normalize_posix_path strips the final /, except when it calls 
>>normalize_win32_path. That makes the code go through extra hoops
>>when resolving c:/the/symlink/, it looks for c:/the/symlink/.lnk
>
>Corinna!  Did I predict this or what?
>
>I'm quitting my job and getting a job as a psychic in the carnival!


Aha!  CGF unmasked!  All his meanness stems from his frustrated, deep-
rooted desire to be a 'carnie'!!  Now it all makes sense.

This must be the night of revelations of true vocations.  I'm clearly cut 
out to be a mediocre dime-store psychologist!


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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