Hannu Koivisto: Now respects if-does-not-exist argument in all case

This commit is contained in:
jjgarcia 2002-02-12 15:59:15 +00:00
parent e76f6f9831
commit 33263c74c5

View file

@ -146,9 +146,11 @@ GO_ON:
/* If filename already has an extension, make sure
that the file exists */
filename = coerce_to_filename(pathname);
if (!file_exists(filename))
FEcannot_open(filename);
function = cdr(assoc(pathname->pathname.type, hooks));
if (!file_exists(filename)) {
filename = Cnil;
} else {
function = cdr(assoc(pathname->pathname.type, hooks));
}
} else loop_for_in(hooks) {
/* Otherwise try with known extensions until a matching
file is found */