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-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/2c1aa2efac42511903d37cbcf4eb54a731b9de7c 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);