diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-02-03 09:50:09 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-02-04 02:13:43 +0100 |
commit | cf98d342b0899be3b72438d2dd5a2350f0f78f33 (patch) | |
tree | 29a34dca104d20256b732761b517aa6e7a82902e /gnu/system | |
parent | 33f7b5d20e6c983c6d57048f552d9c055996e9cf (diff) | |
download | patches-cf98d342b0899be3b72438d2dd5a2350f0f78f33.tar patches-cf98d342b0899be3b72438d2dd5a2350f0f78f33.tar.gz |
activation: Set the right owner for home directories.
This fixes a regression introduced in
ae763b5b0b7d5e7316a3d0efe991fe8ab2261031 whereby home directories and
skeletons would be root-owned.
* gnu/build/activation.scm (copy-account-skeletons): Make 'directory' a
keyword parameter. Add #:uid and #:gid and honor them.
[set-owner]: New procedure.
(activate-user-home): Add call to 'getpw' and 'chown'. Pass UID and GID
to 'copy-account-skeletons'.
* gnu/tests/base.scm (run-basic-test)["skeletons in home directories"]:
Test file ownership under HOME.
Diffstat (limited to 'gnu/system')
0 files changed, 0 insertions, 0 deletions