OSDN Git Service

Disable globbing of command line arguments.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 13 Jul 2012 20:12:16 +0000 (20:12 +0000)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Fri, 13 Jul 2012 20:12:16 +0000 (20:12 +0000)
ChangeLog
src/clistub.c

index b7bfc55..645fabe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-07-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       Disable globbing of command line arguments.
+
+       * src/clistub.c (_CRT_glob): Define and initialise to zero; we don't
+       need globbing, and it may cause case transliteration of case-sensitive
+       action keywords, when a file system entity with a case-insensitively
+       matching name exists.
+
 2012-06-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
        Refactor API to facilitate implementation of GUI ListView hooks.
index 3130da1..dc2cc51 100644 (file)
@@ -409,6 +409,12 @@ static int xatoi( const char *input )
 
 #define atmost( lim, val )             ((lim) < (val)) ? (lim) : (val)
 
+/* Disable command line globbing; we don't need it, and case-insensitive
+ * glob matches on files such as INSTALL may interfere with case-sensitive
+ * specification of the mingw-get action keywords.
+ */
+int _CRT_glob = 0;
+
 int main( int argc, char **argv )
 {
   /* Provide storage for interpretation of any parsed command line options.