Commit c88ca682 authored by Martin Pool's avatar Martin Pool

Fix for UNICOS CC: first argument to readlink must not be const, or we

get an error.
parent fc990e81
......@@ -149,8 +149,7 @@ int readlink_stat(const char *Path, STRUCT_STAT *Buffer, char *Linkbuf)
return -1;
}
if (S_ISLNK(Buffer->st_mode)) {
int l;
if ((l = readlink(Path,Linkbuf,MAXPATHLEN-1)) == -1) {
if (readlink((char *) Path, Linkbuf, MAXPATHLEN-1) == -1) {
return -1;
}
Linkbuf[l] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment