From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] utils: Add 'wrap-program'. Date: Mon, 04 Mar 2013 11:08:42 +0100 Message-ID: <87ip57iij9.fsf@gnu.org> References: <877gm7f01v.fsf@gnu.org> <87obfigz7g.fsf@karetnikov.org> <87y5el6hph.fsf@gnu.org> <87fw0rom1n.fsf@karetnikov.org> <87ehgbql5w.fsf@gnu.org> <87hal5ftyu.fsf@karetnikov.org> <874nh4ju7b.fsf@gnu.org> <87hakzwdzu.fsf@karetnikov.org> <87wqtu3n0z.fsf@gnu.org> <87ehg0rwfd.fsf@karetnikov.org> <87bob38ord.fsf@gnu.org> <87sj4f6u39.fsf@karetnikov.org> <87hakv6ndr.fsf@gnu.org> <87mwula74u.fsf@karetnikov.org> <87ehfx32wi.fsf@gnu.org> <87sj4ck5my.fsf_-_@karetnikov.org> <87ehfwyxx8.fsf@gnu.org> <87zjykyt80.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSKD-0006El-Us for bug-guix@gnu.org; Mon, 04 Mar 2013 05:08:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCSKC-0004fP-SL for bug-guix@gnu.org; Mon, 04 Mar 2013 05:08:53 -0500 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=50001 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSKC-0004cf-ME for bug-guix@gnu.org; Mon, 04 Mar 2013 05:08:52 -0500 In-Reply-To: <87zjykyt80.fsf@karetnikov.org> (Nikita Karetnikov's message of "Mon, 04 Mar 2013 03:11:11 +0400") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: >>> + (copy-file prog prog-real) > >> You lack a (chmod prog-real #o755), I think. > > Are you sure? > > If 'prog' is an executable, 'prog-real' will be an executable too. > > scheme@(guile-user)> (open-file "foo" "w") > $1 =3D # > scheme@(guile-user)> (chmod "foo" #o755) > scheme@(guile-user)> (copy-file "foo" "bar") > scheme@(guile-user)> (format #f "~o" (stat:perms (stat "bar"))) > $2 =3D "755" Oh you=E2=80=99re right (I thought permissions were not preserved.) So you can go ahead. Sorry for the noise! Ludo=E2=80=99.