<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
committerCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
Bug-Debian: https://bugs.debian.org/843303

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).

Gbp-Pq: Name pathnames1.12

lsp/gcl_iolib.lsp
lsp/gcl_listlib.lsp
lsp/gcl_truename.lsp

index 93a7d08bc1a4027bc0692beaaabf48ed49563b6d..60a18d9959b4fe051a7343cca46159ba1c05af48 100755 (executable)
                      if-exists iesp if-does-not-exist idnesp external-format)))
     (when (typep s 'stream) (c-set-stream-object1 s pf) s)))
 
-(defun load-pathname-exists (z &aux (z (link-expand (namestring z))))
-  (cond ((eq (stat z) :file) z)
-       (*allow-gzipped-file*
-        (when (eq (stat (string-concatenate (namestring z) ".gz")) :file)
-         z))))
+(defun load-pathname-exists (z)
+  (or (probe-file z)
+      (when *allow-gzipped-file*
+       (probe-file (string-concatenate (namestring z) ".gz")))))
 
 (defun load-pathname (p print if-does-not-exist external-format
                        &aux (pp (merge-pathnames p))
index 21ec205096afbeed5d432c9ac73661f1d7ed35d2..b93d2fec0cddfa4b5ae3aff4b4d156c009f294d5 100755 (executable)
 
 (defun smallnthcdr (n x)
   (declare (fixnum n))
-  (cond ((atom x) (when x (tp-error x proper-list)))
-       ((= n 0) x)
+  (cond ((= n 0) x)
+       ((atom x) (when x (tp-error x proper-list)))
        ((smallnthcdr (1- n) (cdr x)))))
 
 (defun bignthcdr (n i s f) 
index e7a754ea3273346f88a56a0c09666b260074e3e1..130f2e066b5e71fb03d11a7a66d2ba7a8a104d22 100644 (file)
@@ -38,5 +38,5 @@
   (check-type pd pathname-designator)
   (when (wild-pathname-p pn)
     (error 'file-error :pathname pn :format-control "Pathname is wild"))
-  (when (eq (stat (namestring pn)) :file)
+  (when (eq (stat (link-expand (namestring pn))) :file)
     (truename pn)))