Commit f4d5d4d
committed
Fix apparmor config.
Related bugs:
* https://bugzilla.suse.com/show_bug.cgi?id=1111906
* https://bugs.debian.org/988068
* jonls#672
* jonls#860
src/config-ini.c still looks for $HOME/.config/redshift.conf which
fails to open because the apparmor profile doesn’t allow it.
src/config-ini.c also does this:
struct passwd *pwd = getpwuid(getuid());
char *home = pwd->pw_dir;
Since getpwuid doesn’t have access to /etc/passwd* it returns NULL,
causing a segmentation fault in the line thereafter.
This code is not triggered if a config is specified (e.g.
-c redshift.conf) or $HOME/.config/redshift.conf exists.1 parent 490ba2a commit f4d5d4d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
0 commit comments