diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-11-08 23:35:45 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-11-09 23:27:09 +0100 |
commit | d75475762824a4fa7e743138da6a9d59d8690a33 (patch) | |
tree | cd2b3add7627c77e84d499b383925eb726552500 /tests | |
parent | 86e9e5cb230c3c10272a223ea04e7564f3c1463b (diff) |
publish: Create files in the cache as #o644.
Reported by Ricardo Wurmus <rekado@elephly.net>.
* guix/scripts/publish.scm (compress-nar): Add 'chmod' call to ensure
PORT is #o644, in the uncompressed case.
(bake-narinfo+nar): Likewise for the narinfo file.
* tests/publish.scm ("with cache"): Check permissions on CACHED and NAR.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/publish.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/publish.scm b/tests/publish.scm index e46e6256b7..cafd0f13a2 100644 --- a/tests/publish.scm +++ b/tests/publish.scm @@ -434,6 +434,11 @@ References: ~%" (< ttl 3600))) (wait-for-file cached) + + ;; Both the narinfo and nar should be world-readable. + (= #o644 (stat:perms (lstat cached))) + (= #o644 (stat:perms (lstat nar))) + (let* ((body (http-get-port url)) (compressed (http-get nar-url)) (uncompressed (http-get (string-append base "nar/" |