From: Christos Zoulas Date: Sun, 23 Apr 2000 04:32:19 +0000 (+0000) Subject: EMX path separator (Alexander Mai) X-Git-Tag: FILE3_31~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=842e7bbc709b9c60ad3245ab2e725aacfd7959c8;p=file EMX path separator (Alexander Mai) --- diff --git a/src/apprentice.c b/src/apprentice.c index 2c5875ae..d714be99 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -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);