Mike Gilbert c3c88c8053 savedconfig.eclass: drop faulty permissions check
This check was meant to test if the user has accidentally restricted
access to the /etc/portage/savedconfig directory. There are a few
problems:

1. We don't actually need read access on the directory. We really need
   the execute bit set so that we can access files within the directory.

2. There may be permissions issues on subdirectories, and we would fail
   to detect them.

3. There is no easy way to distingish between EACCES and ENOENT using
   shell commands. We get an exit status of 1 from [[ -r ${path} ]] if
   there is a permissions problem or if some component of the path does
   not exist. This makes resolving problem 2 difficult without using a
   more robust language with direct access to errno.

Instead of trying to detect a permissions problem, just output a warning
telling the user to check permissions if we cannot find a config file.

Bug: https://bugs.gentoo.org/289168
Bug: https://bugs.gentoo.org/814995
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2021-09-29 15:32:44 -04:00
2021-09-26 12:29:21 +02:00
2021-09-19 17:29:34 +02:00
2021-09-29 09:12:46 +02:00
2021-09-28 22:11:04 +01:00
2021-09-23 21:25:16 -05:00
2021-09-19 16:26:17 -04:00
2021-09-14 15:39:15 +02:00
2021-09-29 18:55:15 +02:00
2021-09-29 05:42:54 -05:00
2021-09-24 18:29:42 +02:00
2021-09-28 12:07:19 -04:00
2021-09-26 22:01:45 +01:00
2021-09-02 12:58:48 +02:00
2021-09-29 18:55:12 +02:00
2021-09-26 21:36:07 +02:00
2021-09-28 14:48:58 +02:00
2021-09-28 03:27:54 +01:00
2021-09-27 22:42:07 +08:00
2021-09-27 22:41:49 +08:00
2021-09-27 22:45:17 +08:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%