Port file-name-case-insensitive-p to Haiku
* src/fileio.c (file_name_case_insensitive_err): Don't return errno upon failure, just 1, since errno is not used in the sole caller.
This commit is contained in:
parent
8b1c92da79
commit
fb5e43040f
1 changed files with 2 additions and 2 deletions
|
@ -2525,7 +2525,7 @@ internal_delete_file (Lisp_Object filename)
|
|||
#endif
|
||||
|
||||
/* Return -1 if FILE is a case-insensitive file name, 0 if not,
|
||||
and a positive errno value if the result cannot be determined. */
|
||||
and 1 if the result cannot be determined. */
|
||||
|
||||
static int
|
||||
file_name_case_insensitive_err (Lisp_Object file)
|
||||
|
@ -2559,7 +2559,7 @@ file_name_case_insensitive_err (Lisp_Object file)
|
|||
return - (res == 0);
|
||||
# endif
|
||||
if (errno != EINVAL)
|
||||
return errno;
|
||||
return 1;
|
||||
#endif
|
||||
|
||||
#if defined CYGWIN || defined DOS_NT
|
||||
|
|
Loading…
Add table
Reference in a new issue