Hi, people.
Some applications (i.e. FoxPro) using zero count write outside
file for changing it's size. But this code ...
static inline int
dos_write(fd, data, cnt)
int fd;
char *data;
int cnt;
{
int ret;
if (cnt <= 0)
return (0);
ret = RPT_SYSCALL(write(fd, data, cnt));
Debug0((dbg_fd, "Wrote %10.10s\n", data));
return (ret);
}
... bringing to error messages like "Insufficient disk space"
Changing condition to 'if (cnt < 0)' make they happy.
--
Sergey Suleimanov
P.S. Sorry for my English.
