Skip to content

Commit

Permalink
cups/dest.c: Write data into /etc/cups/lpoptions if we're root
Browse files Browse the repository at this point in the history
  • Loading branch information
zdohnal committed Aug 15, 2022
1 parent 04449d1 commit 8ae6eb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cups/dest.c
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,11 @@ cupsSetDests2(http_t *http, /* I - Connection to server or @code CUPS_HTTP_

snprintf(filename, sizeof(filename), "%s/lpoptions", cg->cups_serverroot);

if (cg->home)
if (cg->home
#ifndef _WIN32
&& getuid() != 0
#endif /* !_WIN32 */
)
{
/*
* Create ~/.cups subdirectory...
Expand Down

0 comments on commit 8ae6eb1

Please sign in to comment.