Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17cc4c3
)
Fix attropen() flags for writing an xattr on solaris.
author
Wayne Davison
<wayned@samba.org>
Wed, 2 Sep 2009 14:36:57 +0000
(07:36 -0700)
committer
Wayne Davison
<wayned@samba.org>
Wed, 2 Sep 2009 14:37:55 +0000
(07:37 -0700)
lib/sysxattrs.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/sysxattrs.c
b/lib/sysxattrs.c
index
76b6802
..
ec11d7d
100644
(file)
--- a/
lib/sysxattrs.c
+++ b/
lib/sysxattrs.c
@@
-193,7
+193,7
@@
int sys_lsetxattr(const char *path, const char *name, const void *value, size_t
size_t bufpos;
mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP;
- if ((attrfd = attropen(path, name, O_CREAT|O_
WRONLY|O_NOFOLLOW
, mode)) < 0)
+ if ((attrfd = attropen(path, name, O_CREAT|O_
TRUNC|O_WRONLY
, mode)) < 0)
return -1;
for (bufpos = 0; bufpos < size; ) {