summaryrefslogtreecommitdiffstats
path: root/common/userpref.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-21 01:42:10 +0200
committerGravatar Martin Szulecki2013-09-21 01:42:10 +0200
commit74c81b034f7c61fd8582558a4bc5ad7f41c37b1a (patch)
tree71c12f0bdb8a855a706bb872442c41ebc3232941 /common/userpref.c
parent5d044b6fd0f2b5fe2a0cee1b0d22efe3f61f32a4 (diff)
downloadlibimobiledevice-74c81b034f7c61fd8582558a4bc5ad7f41c37b1a.tar.gz
libimobiledevice-74c81b034f7c61fd8582558a4bc5ad7f41c37b1a.tar.bz2
userpref: Use /var/lib/lockdown as the system-wide pair record path on Linux
Diffstat (limited to 'common/userpref.c')
-rw-r--r--common/userpref.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/userpref.c b/common/userpref.c
index 3fc4adc..5250978 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -69,15 +69,12 @@
69 69
70#define USERPREF_CONFIG_EXTENSION ".plist" 70#define USERPREF_CONFIG_EXTENSION ".plist"
71 71
72#ifndef __APPLE__
73#define USERPREF_CONFIG_DIR "libimobiledevice"
74#else
75#ifdef WIN32 72#ifdef WIN32
76#define USERPREF_CONFIG_DIR "Apple"DIR_SEP_S"Lockdown" 73#define USERPREF_CONFIG_DIR "Apple"DIR_SEP_S"Lockdown"
77#else 74#else
78#define USERPREF_CONFIG_DIR "lockdown" 75#define USERPREF_CONFIG_DIR "lockdown"
79#endif 76#endif
80#endif 77
81#define USERPREF_CONFIG_FILE "SystemConfiguration"USERPREF_CONFIG_EXTENSION 78#define USERPREF_CONFIG_FILE "SystemConfiguration"USERPREF_CONFIG_EXTENSION
82 79
83static char *__config_dir = NULL; 80static char *__config_dir = NULL;