summaryrefslogtreecommitdiff
path: root/package/tinc/patches/patch-src_linux_device_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/tinc/patches/patch-src_linux_device_c')
-rw-r--r--package/tinc/patches/patch-src_linux_device_c20
1 files changed, 0 insertions, 20 deletions
diff --git a/package/tinc/patches/patch-src_linux_device_c b/package/tinc/patches/patch-src_linux_device_c
deleted file mode 100644
index 9a5c09059..000000000
--- a/package/tinc/patches/patch-src_linux_device_c
+++ /dev/null
@@ -1,20 +0,0 @@
---- tinc-1.0.11.orig/src/linux/device.c 2009-09-27 12:27:54.000000000 +0200
-+++ tinc-1.0.11/src/linux/device.c 2009-12-06 02:30:32.000000000 +0100
-@@ -61,7 +61,7 @@ bool setup_device(void) {
- if (netname != NULL)
- iface = xstrdup(netname);
- #else
-- iface = xstrdup(rindex(device, '/') ? rindex(device, '/') + 1 : device);
-+ iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device);
- #endif
- device_fd = open(device, O_RDWR | O_NONBLOCK);
-
-@@ -105,7 +105,7 @@ bool setup_device(void) {
- device_type = DEVICE_TYPE_ETHERTAP;
- if(iface)
- free(iface);
-- iface = xstrdup(rindex(device, '/') ? rindex(device, '/') + 1 : device);
-+ iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device);
- }
-
- logger(LOG_INFO, "%s is a %s", device, device_info);