This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: gamin-0.1.7
- From: Dave <kilroyd at googlemail dot com>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 14 Feb 2006 19:06:51 +0000
- Subject: Re: gamin-0.1.7
- References: <43D804B8.5010707@lapo.it> <20060125233034.GB19455@trixie.casa.cgf.cx> <43D81994.8020403@users.sourceforge.net> <43D8FDA4.2010409@lapo.it> <43D9426E.3080106@users.sourceforge.net> <43D955BF.8090102@users.sourceforge.net> <43DE244C.2030402@lapo.it> <43DEB2E4.2020106@users.sourceforge.net> <Pine.GSO.4.63.0601302011170.2628@access1.cims.nyu.edu> <43DECBA1.1030508@users.sourceforge.net> <43DF2F7F.7050203@lapo.it> <43E16CE2.9090307@users.sourceforge.net> <43F0A57A.5020505@lapo.it>
Lapo Luchini wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yaakov S (Cygwin Ports) wrote:
static int gamin_check_not_fat (void)
Nice.
if (strcmp(fsname, "FAT") == 0)
Had to change this to a strncmp(, , 3), but otherwise works perfectly.
Seeing this and the messages about string vulnerabilities that are
floating around, I thought I'd have a closer look at the function.
Turns out the code is fine. However note that this will only work on
2000/XP and greater. GetVolumePathName is only available when
_WIN32_WINNT>=0x500
9x, ME and NT will either need to figure out the root directory of the
volume some other way, or just CD to winpath and call GetVolumeInformation.
Dave