summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-10 00:38:35 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-10 00:38:35 +0000
commit35992b8f2c9d58a08d1ecb08a39d7c99362fd2c0 (patch)
treecc23253b4b3d9fbc15f31e867b8bda1343362cf8 /src
parent0e06203fb85887dc5ead6a10773bfa1ca57ef19c (diff)
parent8ed59c2108b433165294d90b8c73ceb2f355b3c2 (diff)
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomaticv2.13.70
Diffstat (limited to 'src')
-rw-r--r--src/lib/config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 99115f2d7..b64690aad 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -233,7 +233,7 @@ void
Config::read ()
try
{
-#ifdef DCPOMATIC_VARIANT_SWAROOP
+#if defined(DCPOMATIC_VARIANT_SWAROOP) && defined(DCPOMATIC_LINUX)
if (geteuid() == 0) {
/* Take ownership of the config file if we're root */
chown (config_file().string().c_str(), 0, 0);