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:
yar 2003-01-29 17:04:07 +00:00
parent 194b4a5758
commit a50bdf3ed1

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);