EROFS is not a critical error in a "mkdir -p".
This commit is contained in:
parent
0d7a1d1146
commit
bbe065310a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ar_subs.c,v 1.51 2006/12/14 23:18:11 christos Exp $ */
|
||||
/* $NetBSD: ar_subs.c,v 1.52 2007/03/08 17:01:30 rillig Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992 Keith Muller.
|
||||
@ -42,7 +42,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)ar_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: ar_subs.c,v 1.51 2006/12/14 23:18:11 christos Exp $");
|
||||
__RCSID("$NetBSD: ar_subs.c,v 1.52 2007/03/08 17:01:30 rillig Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -143,6 +143,7 @@ domkdir(const char *fname, mode_t mode)
|
||||
case EEXIST:
|
||||
case EACCES:
|
||||
case ENOSYS: /* Grr Solaris */
|
||||
case EROFS:
|
||||
error = errno;
|
||||
if (stat(fname, &sb) != -1 && S_ISDIR(sb.st_mode))
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user