From 3837baa9648193cfa107846a5610955ffb2e39ca Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 25 Aug 2022 19:46:00 +0300 Subject: routines: make the path validation error message more informative The error message matches the comment before the function, so remove the last one. --- src/routines.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routines.c b/src/routines.c index 21c569b..696bedb 100644 --- a/src/routines.c +++ b/src/routines.c @@ -67,14 +67,13 @@ int copy_outside(char *password) errprint_r(1, "You didn't have x11 or wayland when app builded\n"); } -/* check two dot in path */ int check_sneaky_paths(const char *path) { int length = strlen(path), i; for(i = 1; i < length; i++) { if(path[i-1] == '.' && path[i] == '.') { - print_error("Error: You have used forbidden paths\n"); + print_error("Error: A double dot is found in the path.\n"); return 1; } } -- cgit v1.2.3-18-g5258