From 2c1aa2efac42511903d37cbcf4eb54a731b9de7c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 3 Sep 2009 15:25:55 -0700 Subject: [PATCH] Need to use O_RDONLY in solaris sys_lremovexattr(). --- lib/sysxattrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sysxattrs.c b/lib/sysxattrs.c index ec11d7d9..d55ee0c2 100644 --- a/lib/sysxattrs.c +++ b/lib/sysxattrs.c @@ -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); -- 2.34.1