]> granicus.if.org Git - file/commitdiff
EMX path separator (Alexander Mai)
authorChristos Zoulas <christos@zoulas.com>
Sun, 23 Apr 2000 04:32:19 +0000 (04:32 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 23 Apr 2000 04:32:19 +0000 (04:32 +0000)
src/apprentice.c

index 2c5875ae0d25d5887dd18bd182cdbbe6ce5fff7b..d714be992f23cee13085bdc5c62dc252d497e9b8 100644 (file)
@@ -33,7 +33,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$Id: apprentice.c,v 1.31 2000/04/11 02:06:57 christos Exp $")
+FILE_RCSID("@(#)$Id: apprentice.c,v 1.32 2000/04/23 04:32:19 christos Exp $")
 #endif /* lint */
 
 #define        EATAB {while (isascii((unsigned char) *l) && \
@@ -42,6 +42,13 @@ FILE_RCSID("@(#)$Id: apprentice.c,v 1.31 2000/04/11 02:06:57 christos Exp $")
                        tolower((unsigned char) (l)) : (l))
 
 
+#ifdef __EMX__
+  char PATHSEP=';';
+#else
+  char PATHSEP=':';
+#endif
+
+
 static int getvalue    __P((struct magic *, char **));
 static int hextoint    __P((int));
 static char *getstr    __P((char *, char *, int, int *));
@@ -73,7 +80,7 @@ int check;                    /* non-zero? checking-only run. */
        fn = strcpy(mfn, fn);
   
        while (fn) {
-               p = strchr(fn, ':');
+               p = strchr(fn, PATHSEP);
                if (p)
                        *p++ = '\0';
                file_err = apprentice_1(fn, check);