Re: [PATCH] Fix update-index --refresh for submodules if stat(2) returns st_size 0
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jul 21, 2008, 19:43 UTC
- Message-ID
- <20080721194322.GA4013@blimp.local>
- In-Reply-To
- <alpine.DEB.1.00.0807211917440.8986@racer>
Johannes Schindelin, Mon, Jul 21, 2008 20:20:43 +0200:
Show 8 quoted lines
> Hi, > > On Mon, 21 Jul 2008, Alex Riesen wrote: > > > For example - Cygwin. > > Please enhance: your oneline is too long, and your commit message body too > short.
Well, I'm really not sure. I just found this difference between linux and cygwin (st_stat is 0 for dirs on cygwin). Than I noticed that the routine where I made the change explicitely checks for st_size not being 0. I must admit I can't make much out of comment, and hope this discussion will help to clear the check up.
Show 7 quoted lines
> > Can MSys folks please try it? I noticed it when the test > > t2103-update-index-ignore-missing.sh (the 5th case) started failing. > > Since M$' documentation says "This member does not have a meaning for > directories." about the member nFileSizeLow of WIN32_FILE_ATTRIBUTE_DATA > which we use to implement a sane "lstat()", I think this bug hits MinGW > (not MSys) as well.
Could you, just for completeness, try? I don't have mingw at hand and SUSv3 (http://www.opengroup.org/onlinepubs/009695399/toc.htm) does not tells much too. No UNIX system I know about has it 0 for directories.