It's not an error if a directory can't be created because it already exists.

This commit is contained in:
W. Eric Norum
2005-03-04 22:58:07 +00:00
parent 7d4cd6ffb2
commit 54ba14953a
+2 -1
View File
@@ -252,7 +252,8 @@ initialize_remote_filesystem(const char **argv)
cp = mount_point;
while ((cp = strchr(cp+1, '/')) != NULL) {
*cp = '\0';
if (mkdir (mount_point, 0755) != 0)
if ((mkdir (mount_point, 0755) != 0)
&& (errno != EEXIST))
LogFatal("Can't create directory \"%s\": %s.\n",
mount_point, strerror(errno));
*cp = '/';