* lib/spawn-pipe.c [OS/2 kLIBC]: Check directory correctly if it means
a current directory.
+2021-01-19 KO Myung-Hun <komh78@gmail.com>
+
+ spawn-pipe: Fix SIGSEGV on OS/2 kLIBC.
+ * lib/spawn-pipe.c [OS/2 kLIBC]: Check directory correctly if it means
+ a current directory.
+
2021-01-19 KO Myung-Hun <komh78@gmail.com>
dirent: Fix compilation error in C++ mode on OS/2 kLIBC.
}
# else /* __KLIBC__ */
- if (!(directory == NULL && strcmp (directory, ".") == 0))
+ if (!(directory == NULL || strcmp (directory, ".") == 0))
{
/* A directory argument is not supported in this implementation. */
saved_errno = EINVAL;