From: Jim Meyering Date: Mon, 25 Sep 2006 13:02:15 +0000 (+0000) Subject: * fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8569913ab93ef1bd615457b60ae6bd07cf7173;p=pspp * fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open. This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index b780c104dc..c05b2caa8a 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2006-09-25 Jim Meyering + + * fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open. + This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0. + 2006-09-25 Bruno Haible * getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message. diff --git a/m4/fcntl_h.m4 b/m4/fcntl_h.m4 index 4d904881a3..35e4b51487 100644 --- a/m4/fcntl_h.m4 +++ b/m4/fcntl_h.m4 @@ -29,7 +29,7 @@ AC_DEFUN([gl_FCNTL_H], { if (symlink (".", sym) != 0) return 1; - if (open (sym, O_RDONLY | O_NOFOLLOW) == 0) + if (0 <= open (sym, O_RDONLY | O_NOFOLLOW)) return 1; } return !constants;]])],