Mail Archives: djgpp/1995/06/13/21:35:10
In gmake 3.69, remove_intermediates function, file file.c,
The following lines :
status = unlink (f->name);
if (status < 0 && errno == ENOENT)
Should be replaced (for djgpp) by
status = unlink (f->name);
if (status < 0 && (errno == ENOENT || errno == ENOTDIR))
This is because unlink returns ENOTDIR if the path is not valid.
Without this patch, we could get some strange error messages at the end of
a make, like "rm foo.mak.xxx gmake.exe: unlink: foo.mak.xxx: path not
found"
Another solution might be that DJGPP library, for Unix compatibility, never
returns ENOTDIR : djgpp could return ENOENT instead (with a sterror like:
file or path not found).
Also let me know if this is fixed in djgpp gmake 3.71.
Regards
Pierre Willard
- Raw text -