From 233658e5a1599e40bbd8211e64bb98a12751b1ea Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Fri, 19 May 2023 12:20:54 +0300 Subject: [PATCH] attrib.c: Fix another instance of errno not being set on error. --- libntfs-3g/attrib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 652a60f8..6bee808b 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -463,6 +463,7 @@ ntfs_attr *ntfs_attr_open(ntfs_inode *ni, const ATTR_TYPES type, ntfs_log_error("Null character in attribute" " name in inode %lld\n", (long long)ni->mft_no); + errno = EIO; goto put_err_out; } name = ntfs_ucsndup(attr_name, a->name_length);