summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2017-01-25 16:28:03 +0100
committerMarius Bakke <mbakke@fastmail.com>2017-01-26 22:19:16 +0100
commit5a64a791317d98171435eff541a835ab0d3f498c (patch)
tree16d7651fbd58003a8f810ad85fb2f29a37c88766 /gnu
parent14551e073f96d1d3add3eed3036f9eee6371a508 (diff)
downloadguix-5a64a791317d98171435eff541a835ab0d3f498c.tar.gz
utils: Add helper method to make files writable.
* gnu/build/activation.scm (make-file-writable): Move this to ...
* guix/build/utils.scm (make-file-writable): ... here. Export it.
* guix/build/gnu-build-system.scm (strip): Use it.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/build/activation.scm5
1 files changed, 0 insertions, 5 deletions
diff --git a/gnu/build/activation.scm b/gnu/build/activation.scm
index 1b31dc1538..756a6872bb 100644
--- a/gnu/build/activation.scm
+++ b/gnu/build/activation.scm
@@ -78,11 +78,6 @@
 (define (dot-or-dot-dot? file)
   (member file '("." "..")))
 
-(define (make-file-writable file)
-  "Make FILE writable for its owner.."
-  (let ((stat (lstat file)))                      ;XXX: symlinks
-    (chmod file (logior #o600 (stat:perms stat)))))
-
 (define* (copy-account-skeletons home
                                  #:optional (directory %skeleton-directory))
   "Copy the account skeletons from DIRECTORY to HOME."