diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-14 15:30:00 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-14 15:30:00 -0500 |
commit | e2eb28cfcf10ef163253a65f631e0cc98fe34804 (patch) | |
tree | cb7e7018323e6084ef4cf0ec60bd26c0b726ed78 /cups/cups-private.h | |
parent | 3ff5a8e3932907c5794165b27ecefa1e8d7b1321 (diff) | |
download | cups-e2eb28cfcf10ef163253a65f631e0cc98fe34804.tar.gz |
Sandboxed applications were not able to get the default printer (Issue #5676)
- Add "home" global pointing to the user's home directory.
- Use it instead of getenv("HOME") everywhere we needed it.
Diffstat (limited to 'cups/cups-private.h')
-rw-r--r-- | cups/cups-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cups/cups-private.h b/cups/cups-private.h index aeba7176b..97734a539 100644 --- a/cups/cups-private.h +++ b/cups/cups-private.h @@ -82,6 +82,7 @@ typedef struct _cups_globals_s /**** CUPS global state data ****/ *cups_serverroot, /* CUPS_SERVERROOT environment var */ *cups_statedir, /* CUPS_STATEDIR environment var */ + *home, /* HOME environment var */ *localedir; /* LOCALDIR environment var */ /* adminutil.c */ |