bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] utils: Add 'wrap-program'.


From: Nikita Karetnikov
Subject: Re: [PATCH] utils: Add 'wrap-program'.
Date: Mon, 04 Mar 2013 03:11:11 +0400

>> +    (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 = #<output: foo 9>
scheme@(guile-user)> (chmod "foo" #o755)
scheme@(guile-user)> (copy-file "foo" "bar")
scheme@(guile-user)> (format #f "~o" (stat:perms (stat "bar")))
$2 = "755"

Attachment: pgpwwvhcMmMl1.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]