Need to use O_RDONLY in solaris sys_lremovexattr().

This commit is contained in:
Wayne Davison committed 2009-09-03 15:25:55 -07:00
1 parent 6e310d38fc
commit 2c1aa2efac
1 file changed
+1 -1
+1 -1
View File
@@ -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);