ports/net/netatalk3/files/patch-libatalk_vfs_extattr.c
Joe Marcus Clarke b7441e8990 Update to 3.1.10.
* Clean up the port to use the new OPTIONS framework [1]
* Make sure to use the right Python executable for afpstats [2]

PR:		213192 [2]
Submitted by:	bofh [1]
Differential Revision:	D7537 [1]
2016-10-08 20:25:14 +00:00

11 lines
439 B
C

--- libatalk/vfs/extattr.c.orig 2016-06-22 08:57:37 UTC
+++ libatalk/vfs/extattr.c
@@ -194,6 +194,8 @@ ssize_t sys_fgetxattr (int filedes, cons
const char *attrname = ((s=strchr(name, '.')) == NULL) ? name : s + 1;
if((retval=extattr_get_fd(filedes, attrnamespace, attrname, NULL, 0)) >= 0) {
+ if (size == 0)
+ return retval;
if(retval > size) {
errno = ERANGE;
return -1;