search for: attrfd

Displaying 3 results from an estimated 3 matches for "attrfd".

2009 Jul 27
1
supporting --fake-super on opensolaris (zfs) destination
...--- a/lib/sysxattrs.c +++ b/lib/sysxattrs.c @@ -128,7 +128,155 @@ ssize_t sys_llistxattr(const char *path, char *list, size_t size) #else -#error You need to create xattr compatibility functions. +ssize_t sys_lgetxattr(const char *path, const char *name, void *value, size_t size) +{ + + + int attrfd; + size_t bufpos,r; + STRUCT_STAT fst; + + do_lstat(path,&fst); + if(S_ISLNK(fst.st_mode)) { + errno=EPERM; + return(-1); + } + + attrfd = attropen(path, name, O_RDONLY); + + if (attrfd<0) { + errno = ENOATTR; + return -1; + } + + + for(bufpos=0;bufpos<size;) { + r=read(attrfd,v...
2009 Aug 13
12
DO NOT REPLY [Bug 6633] New: Extended attributes under Solaris are not supported.
https://bugzilla.samba.org/show_bug.cgi?id=6633 Summary: Extended attributes under Solaris are not supported. Product: rsync Version: 3.0.6 Platform: All OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: Lloyd.Parkes at
2009 Sep 09
3
DO NOT REPLY [Bug 6701] New: permission of attributes are not preserved
...or every user preserve permissions - for root preserve permission and ownerships diff --git a/lib/sysxattrs.c b/lib/sysxattrs.c index d55ee0c..c9a38cd 100644 --- a/lib/sysxattrs.c +++ b/lib/sysxattrs.c @@ -191,7 +191,7 @@ int sys_lsetxattr(const char *path, const char *name, const { int attrfd; size_t bufpos; - mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; + mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH; if ((attrfd = attropen(path, name, O_CREAT|O_TRUNC|O_WRONLY, mode)) < 0) return -1; -- Configure bugmail: https:...