mknod: avoid false failure with dash
authorChristian Weisgerber <naddy@mips.inka.de>
Thu, 11 Nov 2010 18:08:18 +0000 (11:08 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 11 Nov 2010 18:09:42 +0000 (11:09 -0700)
* m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/mknod.m4

index 9b23f76752cc904e50c27eae4827448dfd586a2f..8c4cde9581f6ce389ea41fbb9f22794c730255bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
+
+       mknod: avoid false failure with dash
+       * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
+
 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
 
        unlink: Fix "is it should" typo in diagnostic.
index c13644b844561047281fbca3b2f6a4a074a39cec..a49409a39968ee2cb9d91a0524bad71655e6e7eb 100644 (file)
@@ -1,4 +1,4 @@
-# serial 2
+# serial 3
 # See if we need to provide mknod replacement.
 
 dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
@@ -30,7 +30,7 @@ AC_DEFUN([gl_FUNC_MKNOD],
       if (!geteuid ()) return 99;
       if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;]])],
          [gl_cv_func_mknod_works=yes],
-         [if test $? == 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
+         [if test $? = 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
             AC_MSG_FAILURE([you should not run configure as root ]dnl
 [(set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)])
           fi