Commit 2c1aa2ef authored by Wayne Davison's avatar Wayne Davison

Need to use O_RDONLY in solaris sys_lremovexattr().

parent 6e310d38
......@@ -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);
......
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