diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-02-18 17:13:00 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-03-10 11:43:14 +0100 |
commit | a81bb1e4bb838210eed7d63ad5bf89ae9dd72eda (patch) | |
tree | 18f22e6731abe1680d6137af6e34e8feac7aa01c /guix.scm | |
parent | e1b38046a6eadd2a3a8f1597330cf688904bd41b (diff) | |
download | guix-a81bb1e4bb838210eed7d63ad5bf89ae9dd72eda.tar.gz guix-a81bb1e4bb838210eed7d63ad5bf89ae9dd72eda.zip |
home: symlink-manager: Remove 'empty-directory?' and avoid TOCTTOU race.
This removes three 'stat' syscalls.
* gnu/home/services/symlink-manager.scm (update-symlinks-script)[empty-directory?]:
Remove.
[cleanup-symlinks]: Replace use of 'file-exists?', 'file-is-directory?',
and 'empty-directory?' by a single 'rmdir' call.
Diffstat (limited to 'guix.scm')
0 files changed, 0 insertions, 0 deletions