mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-22 13:54:16 -04:00
Fix for UNICOS CC: first argument to readlink must not be const, or we
get an error.
This commit is contained in:
1 parent
fc990e81cb
commit
c88ca682ef
1 file changed
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user