aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-08-25 19:46:00 +0300
committerJoursoir <chat@joursoir.net>2022-08-25 20:37:03 +0300
commit3837baa9648193cfa107846a5610955ffb2e39ca (patch)
tree4db5a721e908bb232cfb3bae276dfd0cbea2e94f
parent95705e381b2256df902ae36f64167b882dba7548 (diff)
downloadlock-password-3837baa9648193cfa107846a5610955ffb2e39ca.tar.gz
lock-password-3837baa9648193cfa107846a5610955ffb2e39ca.tar.bz2
lock-password-3837baa9648193cfa107846a5610955ffb2e39ca.zip
routines: make the path validation error message more informative
The error message matches the comment before the function, so remove the last one.
-rw-r--r--src/routines.c3
1 files changed, 1 insertions, 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;
}
}