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