summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-15 11:44:14 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-15 11:44:14 +0000
commit58f8f4eb033545fc0a8ed999e939775530c4298c (patch)
tree8a4d0bd660d9fe86a9f92ed57593574334391a5b /Build
parentb11a52a1f5540aa3c933056cf0232a7ac91ee1cb (diff)
Partially revert the minor rewrite (r22435)
git-svn-id: svn://tug.org/texlive/trunk@22482 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog4
-rw-r--r--Build/source/texk/kpathsea/absolute.c10
2 files changed, 11 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 9b2e86f9108..b954fc47ddf 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-15 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * absolute.c: Partially revert the minor rewrite.
+
2011-05-12 Peter Breitenlohner <peb@mppmu.mpg.de>
* absolute.c: Minor rewrite.
diff --git a/Build/source/texk/kpathsea/absolute.c b/Build/source/texk/kpathsea/absolute.c
index 9a2f130619d..6fc386b053b 100644
--- a/Build/source/texk/kpathsea/absolute.c
+++ b/Build/source/texk/kpathsea/absolute.c
@@ -31,9 +31,11 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok)
#include <string.h>
(void)kpse; /* currenty not used */
return strcspn (filename, "]>:") != strlen (filename);
-#endif /* VMS */
+#else /* not VMS */
+ boolean absolute;
+ boolean explicit_relative;
- boolean absolute = IS_DIR_SEP (*filename)
+ absolute = IS_DIR_SEP (*filename)
#ifdef DOSISH
/* Novell allows non-alphanumeric drive letters. */
|| (*filename && IS_DEVICE_SEP (filename[1]))
@@ -48,7 +50,8 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok)
|| strchr (filename, ':')
#endif /* AMIGA */
;
- boolean explicit_relative = relative_ok
+ explicit_relative
+ = relative_ok
#ifdef AMIGA
/* Leading / is like `../' on Unix and DOS. Allow Unix syntax,
too, though, because of possible patch programs like
@@ -62,6 +65,7 @@ kpathsea_absolute_p (kpathsea kpse, const_string filename, boolean relative_ok)
/* FIXME: On UNIX an IS_DIR_SEP of any but the last character in the name
implies relative. */
return absolute || explicit_relative;
+#endif /* not VMS */
}
#if defined (KPSE_COMPAT_API)