]> tinc-vpn.org Git - tinc/blobdiff - src/uml_device.c
Support autoconf's --runstatedir option.
[tinc] / src / uml_device.c
index 5c9a306e639e1ca0028403dba509aed03d593647..ee9e03f4291419aa3372348888b2053b543f9178 100644 (file)
@@ -65,7 +65,7 @@ static bool setup_device(void) {
        struct timeval tv;
 
        if(!get_config_string(lookup_config(config_tree, "Device"), &device)) {
-               xasprintf(&device, LOCALSTATEDIR "/run/%s.umlsocket", identname);
+               xasprintf(&device, RUNSTATEDIR "/%s.umlsocket", identname);
        }
 
        get_config_string(lookup_config(config_tree, "Interface"), &iface);