From 8ae578d6aee868b106cd72cc115d008892fec222 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 24 Aug 2010 15:11:24 +0000 Subject: [PATCH] * external.cc (cygwin_internal): In CW_CVT_MNT_OPTS case, initialize flags with *pflags to restore original behaviour. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/external.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 942abb43f..19b8c0f12 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-08-24 Corinna Vinschen + + * external.cc (cygwin_internal): In CW_CVT_MNT_OPTS case, initialize + flags with *pflags to restore original behaviour. + 2010-08-21 Corinna Vinschen * Makefile.in (DLL_IMPORTS): Link against advapi32.a before kernel32.a. diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index e8d3580f4..7b26eefa0 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -507,7 +507,7 @@ cygwin_internal (cygwin_getinfo_types t, ...) else { unsigned *pflags = va_arg (arg, unsigned *); - unsigned flags = 0; + unsigned flags = pflags ? *pflags : 0; if (fstab_read_flags (option_string, flags, true)) { if (pflags)