Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/target/makedevs
Date: Tue, 20 Mar 2007 10:21:35 -0700 (PDT)	[thread overview]
Message-ID: <20070320172135.6471A4809F@busybox.net> (raw)

Author: aldot
Date: 2007-03-20 10:21:35 -0700 (Tue, 20 Mar 2007)
New Revision: 18182

Log:
- make it work with MacOSX. Closes #1252


Modified:
   trunk/buildroot/target/makedevs/makedevs.c


Changeset:
Modified: trunk/buildroot/target/makedevs/makedevs.c
===================================================================
--- trunk/buildroot/target/makedevs/makedevs.c	2007-03-20 16:52:44 UTC (rev 18181)
+++ trunk/buildroot/target/makedevs/makedevs.c	2007-03-20 17:21:35 UTC (rev 18182)
@@ -31,9 +31,10 @@
 #include <stdarg.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#ifndef __APPLE__
 #include <sys/sysmacros.h>     /* major() and minor() */
+#endif
 
-
 const char *bb_applet_name;
 
 void bb_verror_msg(const char *s, va_list p)
@@ -146,7 +147,7 @@
 		if (mkdir(path, 0777) < 0) {
 			/* If we failed for any other reason than the directory
 			 * already exists, output a diagnostic and return -1.*/
-			if (errno != EEXIST
+			if ((errno != EEXIST && errno != EISDIR)
 					|| !(flags & FILEUTILS_RECUR)
 					|| (stat(path, &st) < 0 || !S_ISDIR(st.st_mode))) {
 				fail_msg = "create";

             reply	other threads:[~2007-03-20 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 17:21 aldot at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-12-02 22:26 [Buildroot] svn commit: trunk/buildroot/target/makedevs tpetazzoni at uclibc.org
2007-01-21 14:36 aldot at uclibc.org
2006-10-06 12:59 aldot at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070320172135.6471A4809F@busybox.net \
    --to=aldot@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox