From ad83b33426d33f8cee8d2afac94f2f1aa4ef84c4 Mon Sep 17 00:00:00 2001 From: joan2937 Date: Mon, 17 Aug 2020 08:31:26 +0100 Subject: [PATCH] Misc plus fix for #373 --- pigpio.c | 3 +++ pigpiod_if.c | 2 +- pigpiod_if2.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pigpio.c b/pigpio.c index eb04fcd..42ac4d5 100644 --- a/pigpio.c +++ b/pigpio.c @@ -1572,6 +1572,9 @@ int myPathBad(char *name) in_part = 0; last_char_dot = 0; + if (strstr(name, "..")) return 1; + if (strstr(name, "\\.")) return 1; + len = strlen(name); for (i=0; i