search for: attrdirfd

Displaying 2 results from an estimated 2 matches for "attrdirfd".

2009 Jul 27
1
supporting --fake-super on opensolaris (zfs) destination
...LLOW|O_CREAT|O_RDWR,mode); + + if(attrfd>0) { + + for(bufpos=0;bufpos<size;) { + w = write(attrfd, value+bufpos, size); + if(w<0) return -errno; + bufpos+=w; + + } + close(attrfd); + return (bufpos); +} +return 0; +} + +int sys_lremovexattr(const char *path, const char *name) +{ + int attrdirfd; + int error; + STRUCT_STAT fst; + + do_lstat(path,&fst); + + if(S_ISLNK(fst.st_mode)) { + errno=EPERM; + return(-1); + } + + attrdirfd = attropen(path, ".", O_RDONLY); + + error = unlinkat(attrdirfd,name,0); + + close (attrdirfd); + return error; +} + +ssize_t sys_llistxattr(const...
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