Deal with ENOENT properly on non-devfs machines

Broken in revision 1.109
This commit is contained in:
Brian Somers 2001-03-12 12:53:53 +00:00
parent dd689bd571
commit c4c6616ad6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74165

View File

@ -721,11 +721,10 @@ bundle_Create(const char *prefix, int type, int unit)
}
}
#endif
err = errno;
break;
} else if (errno == ENOENT) {
if (++enoentcount > 2)
if (errno != ENOENT || ++enoentcount > 2) {
err = errno;
break;
}
} else
err = errno;
}