summaryrefslogtreecommitdiff
path: root/util/mtp-hotplug.c
diff options
context:
space:
mode:
authorLinus Walleij <triad@df.lth.se>2011-02-09 22:05:52 +0100
committerLinus Walleij <triad@df.lth.se>2011-02-09 22:05:52 +0100
commitdf3ef0fcef855d6060783ed5e873b3248d11f283 (patch)
treea1dbc5567aa748c7f3c93bd8796ab13dc2ad8124 /util/mtp-hotplug.c
parent59d69ab4c087205df50012337db07e898024c8b6 (diff)
downloadlibmtp-df3ef0fcef855d6060783ed5e873b3248d11f283.tar.gz
Don't give the standard udev location /lib/udev a full
path to mtp-probe.
Diffstat (limited to 'util/mtp-hotplug.c')
-rw-r--r--util/mtp-hotplug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/mtp-hotplug.c b/util/mtp-hotplug.c
index 0b4a3f2..10b365d 100644
--- a/util/mtp-hotplug.c
+++ b/util/mtp-hotplug.c
@@ -106,6 +106,10 @@ int main (int argc, char **argv)
mtp_probe_dir[index] = '/';
mtp_probe_dir[index+1] = '\0';
}
+ /* Don't add the standard udev path... */
+ if (!strcmp(mtp_probe_dir, "/lib/udev/")) {
+ mtp_probe_dir[0] = '\0';
+ }
break;
case 'g':
udev_group = strdup(optarg);