From: Thibault Godouet Date: Fri, 18 Apr 2025 20:07:25 +0000 (+0100) Subject: Fixed fcrontab bug when asked to install a file with relative path. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e968f7f521a034de9959b6cae91f5181cf828076;p=thirdparty%2Ffcron.git Fixed fcrontab bug when asked to install a file with relative path. --- diff --git a/fcrontab.c b/fcrontab.c index 75bc1eb..042584e 100644 --- a/fcrontab.c +++ b/fcrontab.c @@ -1114,7 +1114,7 @@ main(int argc, char **argv) /* this is just the file name, not the path : complete it */ size_t path_len = strlen(orig_dir) + 1 + strlen(argv[file_opt]) + 1; - alloc_safe(path_len, fcrontab_file_path); + fcrontab_file_path = alloc_safe(path_len, "fcrontab_file_path"); snprintf(fcrontab_file_path, path_len, "%s/%s", orig_dir, argv[file_opt]); }