diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -47,9 +47,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include "device.h" #include "client.h" +extern const char* userpref_get_config_dir(); + static const char *socket_path = "/var/run/usbmuxd"; static const char *lockfile = "/var/run/usbmuxd.pid"; -static const char *userprefdir = "/var/lib/lockdown"; int should_exit; int should_discover; @@ -529,6 +530,8 @@ int main(int argc, char *argv[]) if(listenfd < 0) goto terminate; + const char* userprefdir = userpref_get_config_dir(); + struct stat fst; int userprefdir_created = 0; if (stat(userprefdir, &fst) < 0) { |