mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 20:09:14 -04:00
* 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]
11 lines
439 B
C
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;
|