* lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
empty string.
+2019-07-03 Bruno Haible <bruno@clisp.org>
+
+ renameatu: Fix test failure on MSVC.
+ * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
+ empty string.
+
2019-07-03 Bruno Haible <bruno@clisp.org>
mbrtowc: Fix invalid use of mbtowc() on MSVC.
return func (file1, file2); /* Reduced to case 5. */
}
+ /* Catch invalid arguments before changing directories. */
+ if (file1[0] == '\0' || file2[0] == '\0')
+ {
+ errno = ENOENT;
+ return -1;
+ }
+
/* Cases 3, 7, 12, 13, 15a, 15b remain. With all reductions in
place, it is time to start changing directories. */