]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sat, 2 Jan 1999 05:17:17 +0000 (05:17 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Jan 1999 05:17:17 +0000 (05:17 +0000)
old/fileutils/ChangeLog

index 401112fad2a3dc24b938aa83743f6ad3b1933556..6f152d090f25a4fd663beb3f6b8dba07febfa5b9 100644 (file)
@@ -1,5 +1,11 @@
 1999-01-01  Jim Meyering  <meyering@ascend.com>
 
+       * lib/makepath.c (make_dir): New function, factored out of make_path.
+       (make_path): Use make_dir rather than open-coding it twice.
+       This effectively reverses the order of the latter pair of stat/mkdir
+       calls and fixes a race condition bug whereby one of two concurrent
+       `mkdir -p' processes could fail with EEXIST.
+
        * lib/xmalloc.c: Add comments.
        (xcalloc, xmalloc, xrealloc): Remove prototypes.
        (xcalloc): Remove `#ifdef NOT_USED' that used to hide this function.