From: joan2937 Date: Mon, 17 Aug 2020 07:31:26 +0000 (+0100) Subject: Misc plus fix for #373 X-Git-Tag: archive/raspbian/1.78-1+rpi1^2~4^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ad83b33426d33f8cee8d2afac94f2f1aa4ef84c4;p=pigpio.git Misc plus fix for #373 --- 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