From 93965f8e3bc991a7c90155fae9dffe93e945c981 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 8fd91cf..da492d0 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