mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user