attrib.c: Fix another instance of errno not being set on error.

edge
Erik Larsson 2023-05-19 12:20:54 +03:00
parent 1565b01e21
commit 233658e5a1
1 changed files with 1 additions and 0 deletions

View File

@ -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);