Added a filename check
This commit is contained in:
parent
420f34a7f3
commit
fd2144a1f9
@ -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
|
||||
// check if it is valid
|
||||
|
||||
/*
|
||||
while (source_access(response.filename, F_OK)) {
|
||||
// if it is invalid, just ask again.
|
||||
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);
|
||||
response = ask_access(filename, proc_info);
|
||||
}
|
||||
*/
|
||||
|
||||
free(real_path);
|
||||
|
||||
real_path = real_filename(response.filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user