summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorChris Nandor <pudge@pobox.com>2001-02-12 19:02:43 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-13 14:22:50 +0000
commit084592ab0b76f3cbd4d089afb08ccea7ba1c9dd8 (patch)
tree8a175b8128ee3a57f4f96b96a3290adb0eb07399 /util.h
parent67127a85e86d9ef67c9a136224ffce237c7df32b (diff)
downloadperl-084592ab0b76f3cbd4d089afb08ccea7ba1c9dd8.tar.gz
buncha MacPerl patches for bleadperl
Message-Id: <p05010404b6ae6f85e07a@[10.0.1.177]> p4raw-id: //depot/perl@8792
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index e01f0ec09e..d188e34e2e 100644
--- a/util.h
+++ b/util.h
@@ -27,7 +27,7 @@
|| ((f)[0] && (f)[1] == ':')) /* drive name */
# else /* NEITHER DOSISH NOR EPOCISH */
# ifdef MACOS_TRADITIONAL
-# define PERL_FILE_IS_ABSOLUTE(f) (strchr(f, ':'))
+# define PERL_FILE_IS_ABSOLUTE(f) (strchr(f, ':') && *(f) != ':')
# else /* !MACOS_TRADITIONAL */
# define PERL_FILE_IS_ABSOLUTE(f) (*(f) == '/')
# endif /* MACOS_TRADITIONAL */