]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix xattr error value
authorSergey Bugaev <bugaevc@gmail.com>
Sun, 12 Feb 2023 11:10:35 +0000 (14:10 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 12 Feb 2023 14:56:21 +0000 (15:56 +0100)
This does not seem like it is supposed to return negative error codes.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230212111044.610942-5-bugaevc@gmail.com>

hurd/xattr.c

index 48914bcf26f28a24f56ce5ac31b684f2a801db62..5a0fc263f5a4eb64e7570e480d9f8532c36b5359 100644 (file)
@@ -68,7 +68,7 @@ _hurd_xattr_get (io_t port, const char *name, void *value, size_t *size)
        {
          if (buf != value)
            __munmap (buf, bufsz);
-         return -ERANGE;
+         return ERANGE;
        }
       if (buf != value && bufsz > 0)
        {