Added a filename check

This commit is contained in:
fedir 2025-05-05 18:59:57 +02:00
parent 420f34a7f3
commit fd2144a1f9
Signed by: fedir
GPG Key ID: C959EE85F0C9362C

View File

@ -225,7 +225,6 @@ int interactive_access(const char *filename, struct process_info proc_info,
// the user might specify a different file in the dialogue, so we need to // the user might specify a different file in the dialogue, so we need to
// check if it is valid // check if it is valid
/*
while (source_access(response.filename, F_OK)) { while (source_access(response.filename, F_OK)) {
// if it is invalid, just ask again. // if it is invalid, just ask again.
fprintf(stderr, "Filename returned by zenty wasn't correct: %s\n", fprintf(stderr, "Filename returned by zenty wasn't correct: %s\n",
@ -233,7 +232,7 @@ int interactive_access(const char *filename, struct process_info proc_info,
free(response.filename); free(response.filename);
response = ask_access(filename, proc_info); response = ask_access(filename, proc_info);
} }
*/
free(real_path); free(real_path);
real_path = real_filename(response.filename); real_path = real_filename(response.filename);