[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rm: avoiding a race condition on non-glibc systems
From: |
Jim Meyering |
Subject: |
Re: rm: avoiding a race condition on non-glibc systems |
Date: |
Sat, 14 May 2005 15:08:26 +0200 |
Paul Eggert <address@hidden> wrote:
> Jim Meyering <address@hidden> writes:
>
>> That looks fine, and works fine here.
>> Please commit it.
>
> OK, done. I also added Cygwin to the list of platforms that
> can't unlink directories, as Eric Blake suggested.
Thanks!
I found that it needed a little change:
2005-05-14 Jim Meyering <address@hidden>
* unlinkdir.m4: Register unlinkdir.c and unlinkdir.h via AC_LIBSOURCES.
Add `AC_LIBOBJ([unlinkdir])'.
Index: m4/unlinkdir.m4
===================================================================
RCS file: /fetish/cu/m4/unlinkdir.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -u -r1.1 -r1.2
--- m4/unlinkdir.m4 14 May 2005 08:01:17 -0000 1.1
+++ m4/unlinkdir.m4 14 May 2005 10:34:00 -0000 1.2
@@ -1,4 +1,4 @@
-#serial 1
+#serial 2
# Copyright (C) 2005 Free Software Foundation, Inc.
#
@@ -13,6 +13,9 @@ AC_DEFUN([gl_UNLINKDIR],
AC_REQUIRE([AC_CANONICAL_HOST])
AC_CHECK_HEADERS_ONCE(priv.h unistd.h)
+ AC_LIBSOURCES([unlinkdir.c, unlinkdir.h])
+ AC_LIBOBJ([unlinkdir])
+
# The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
# and Cygwin never let anyone (even root) unlink directories.
# If anyone knows of another system for which unlink can never