guix-devel
[Top][All Lists]
Advanced

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

[PATCH] environment: Fix setting writable? on networking related files


From: Christopher Baines
Subject: [PATCH] environment: Fix setting writable? on networking related files
Date: Fri, 27 Jan 2017 06:26:30 +0000

* guix/scripts/environment.scm (launch-environment/container): Include the
  file name in the call to string=? when deciding if the file should be
  writable.
---
 guix/scripts/environment.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index a08367d1b..8a3a935a1 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.
-- 
2.11.0




reply via email to

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