When searching for a unique file name in guniquefd(),

distinguish between the cases of an existing file and
a real system error, such as I/O failure, no access etc.

MFC after:	3 days
This commit is contained in:
Yaroslav Tykhiy 2003-01-29 17:04:07 +00:00
parent 7054e8482e
commit 88b707218e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110046

View File

@ -2909,6 +2909,10 @@ guniquefd(char *local, char **name)
*name = count ? new : local;
return (fd);
}
if (errno != EEXIST) {
perror_reply(550, count ? new : local);
return (-1);
}
}
reply(452, "Unique file name cannot be created.");
return (-1);