mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 13:24:15 -04:00
Need to use O_RDONLY in solaris sys_lremovexattr().
This commit is contained in:
1 parent
6e310d38fc
commit
2c1aa2efac
1 file changed
+1
-1
+1
-1
@@ -217,7 +217,7 @@ int sys_lremovexattr(const char *path, const char *name)
|
||||
int attrdirfd;
|
||||
int ret;
|
||||
|
||||
if ((attrdirfd = attropen(path, ".", O_RDWR)) < 0)
|
||||
if ((attrdirfd = attropen(path, ".", O_RDONLY)) < 0)
|
||||
return -1;
|
||||
|
||||
ret = unlinkat(attrdirfd, name, 0);
|
||||
|
||||
Reference in new issue
Block a user