From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#23723: patch-shebang phase breaks symlinks Date: Thu, 16 Jun 2016 07:15:28 +0200 Message-ID: <20160616071528.1e56e75b@scratchpost.org> References: <87fusowopk.fsf@fsfe.org> <87r3c51agw.fsf@gnu.org> <87r3c33l79.fsf@fsfe.org> <8737oiog2n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDPev-0007tH-1o for bug-guix@gnu.org; Thu, 16 Jun 2016 01:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDPer-00087h-Rm for bug-guix@gnu.org; Thu, 16 Jun 2016 01:16:04 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDPer-00087d-OR for bug-guix@gnu.org; Thu, 16 Jun 2016 01:16:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bDPer-0006U5-KM for bug-guix@gnu.org; Thu, 16 Jun 2016 01:16:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <8737oiog2n.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 23723@debbugs.gnu.org, Jelle Licht Hi Ludo, are you sure that's correct? Compare: On Sun, 12 Jun 2016 12:29:52 +0200 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > + (filter (lambda (file) > + (eq? 'regular (lstat file))) ^^^^^ to > - (let ((s (stat (string-append dir "/" f)))) > + (let ((s (lstat (string-append dir "/" f)))) > (eq? 'regular (stat:type s))))) ^^^^^^^^^ . I think the first is missing a call to stat:type .