Added a filename check
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user