Displaying 6 results from an estimated 6 matches for "attropen".
2009 Jul 27
1
supporting --fake-super on opensolaris (zfs) destination
...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,value+bufpos,512);
+	if (r==0) break;
+	if(r<0) {
+		return -errno;
+	}
+	bufpos+=r;
+	}
+close(attrfd);
+return (bufpos);
+ 
+}
+
+ssize_t sys_fgetxattr(in...
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
2020 Mar 27
2
[Bug 14328] New: usleep() is obsolete, use nanosleep()
...function obsolete;
       use nanosleep(2) instead.  POSIX.1-2008 removes the specification of
       usleep().
recent rsync 3.1.3 is still using usleep:
# grep -r usleep *
config.h.in:/* Define to 1 if you have the `usleep' function. */
configure.ac:    initgroups utimensat posix_fallocate attropen setvbuf usleep)
configure.sh:    initgroups utimensat posix_fallocate attropen setvbuf usleep
OLDNEWS:    - Use usleep() for our msleep() function if it is available.
util2.c:    usleep(t*1000);
for my curiosity, that went into rsync @2014, which is not too long ago:
https://git.samba.org/rsync...
2009 Sep 09
3
DO NOT REPLY [Bug 6701] New: permission of attributes are not preserved
...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://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
2008 Jul 08
0
Report this to samba-technical@samba.org, ldap_initialize error
...g for lsetxattr... no
checking for fsetxattr... no
checking for attr_get... no
checking for attr_list... no
checking for attr_set... no
checking for attr_remove... no
checking for attr_getf... no
checking for attr_listf... no
checking for attr_setf... no
checking for attr_removef... no
checking for attropen... yes
checking for extattr_delete_fd... no
checking for extattr_delete_file... no
checking for extattr_delete_link... no
checking for extattr_get_fd... no
checking for extattr_get_file... no
checking for extattr_get_link... no
checking for extattr_list_fd... no
checking for extattr_list_file... no...
2010 Feb 04
3
3.3 and 3.4 compile failure on dbwrap
...g for lsetxattr... no
checking for fsetxattr... no
checking for attr_get... no
checking for attr_list... no
checking for attr_set... no
checking for attr_remove... no
checking for attr_getf... no
checking for attr_listf... no
checking for attr_setf... no
checking for attr_removef... no
checking for attropen... yes
checking for extattr_delete_fd... no
checking for extattr_delete_file... no
checking for extattr_delete_link... no
checking for extattr_get_fd... no
checking for extattr_get_file... no
checking for extattr_get_link... no
checking for extattr_list_fd... no
checking for extattr_list_file... no...