Cygwin/X: Fix thinko in mount option checking
Fix a thinko in mount option checking. Use symbolic names for values assigned to binary flag for clarity. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
67a8c659f2
commit
178e830378
|
@ -1,3 +1,4 @@
|
|||
|
||||
/*
|
||||
|
||||
Copyright 1993, 1998 The Open Group
|
||||
|
@ -361,11 +362,11 @@ winCheckMount(void)
|
|||
continue;
|
||||
level = curlevel;
|
||||
|
||||
if ((winCheckMntOpt(ent, "binary") == NULL) ||
|
||||
if ((winCheckMntOpt(ent, "binary") == NULL) &&
|
||||
(winCheckMntOpt(ent, "binmode") == NULL))
|
||||
binary = 0;
|
||||
binary = FALSE;
|
||||
else
|
||||
binary = 1;
|
||||
binary = TRUE;
|
||||
}
|
||||
|
||||
if (endmntent(mnt) != 1)
|
||||
|
|
Loading…
Reference in New Issue