From: Wayne Davison Date: Thu, 3 Sep 2009 22:25:55 +0000 (-0700) Subject: Need to use O_RDONLY in solaris sys_lremovexattr(). X-Git-Tag: v3.1.0pre1~342 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c1aa2efac42511903d37cbcf4eb54a731b9de7c;p=thirdparty%2Frsync.git Need to use O_RDONLY in solaris sys_lremovexattr(). --- 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);