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:
parent
194b4a5758
commit
a50bdf3ed1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user