aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2017-01-27 06:26:30 +0000
committerLudovic Courtès <ludo@gnu.org>2017-01-30 10:52:45 +0100
commitc003546b0c2a7a61958f5bfac04b25020d41e402 (patch)
treeae4640becbdbb2e22764bc31fdc557c2bfefe79f
parent83421fc744b05af11f549652f214690a711fd2cc (diff)
downloadpatches-c003546b0c2a7a61958f5bfac04b25020d41e402.tar
patches-c003546b0c2a7a61958f5bfac04b25020d41e402.tar.gz
environment: Fix setting writable? on networking related files
* guix/scripts/environment.scm (launch-environment/container): Include the file name in the call to string=? when deciding if the file should be writable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--guix/scripts/environment.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index a08367d1b1..8a3a935a10 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -421,7 +421,8 @@ host file systems to mount inside the container."
;; read-only within the
;; container.
(writable?
- (string=? "/etc/resolv.conf")))))
+ (string=? file
+ "/etc/resolv.conf")))))
%network-configuration-files)
'())
;; Mappings for the union closure of all inputs.