Blob Blame History Raw
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.12-46) unstable; urgency=high
 .
   * pathnames1.12
   * Bug fix: "maintainer script(s) do not start on #!", thanks to
     treinen@debian.org</a>; (Closes: #843303).
Author: Camm Maguire <camm@debian.org>
Bug-Debian: https://bugs.debian.org/843303

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2016-11-22

--- gcl-2.6.12.orig/lsp/gcl_iolib.lsp
+++ gcl-2.6.12/lsp/gcl_iolib.lsp
@@ -460,7 +460,8 @@
 (defun load-pathname-exists (z)
   (or (probe-file z)
       (when *allow-gzipped-file*
-	(probe-file (string-concatenate (namestring z) ".gz")))))
+	(when (probe-file (string-concatenate (namestring z) ".gz"))
+	  z))))
 
 (defun load-pathname (p print if-does-not-exist external-format
 			&aux (pp (merge-pathnames p))