guix/gnu/home
Ludovic Courtès a81bb1e4bb
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.
2022-03-10 11:43:14 +01:00
..
services home: symlink-manager: Remove 'empty-directory?' and avoid TOCTTOU race. 2022-03-10 11:43:14 +01:00
services.scm home: services: import i18n module. 2022-02-05 00:59:30 +01:00