diff options
author | Lee Duncan <lduncan@suse.com> | 2021-12-08 12:36:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 12:36:06 -0800 |
commit | 92508ee649fd2379b909e8d83fe0baf8c42190ed (patch) | |
tree | 90f75b143ddf43c05c41a0ea4bf4e89b2312cbe0 | |
parent | 26446c13be2b04ea3ac83f174db75476491e5c45 (diff) | |
parent | dbc3a1f060c26d38177028b8d682b4ae1dbfb94d (diff) | |
download | open-iscsi-92508ee649fd2379b909e8d83fe0baf8c42190ed.tar.gz |
Merge pull request #293 from cleech/for_upstream
libopeniscsiusr: extend sysfs ignore_error to include EINVAL
-rw-r--r-- | libopeniscsiusr/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopeniscsiusr/sysfs.c b/libopeniscsiusr/sysfs.c index 355ad55..93cc1fe 100644 --- a/libopeniscsiusr/sysfs.c +++ b/libopeniscsiusr/sysfs.c @@ -240,7 +240,7 @@ static int iscsi_sysfs_prop_get_ll(struct iscsi_context *ctx, errno_save = sysfs_read_file(file_path, buff, _INT32_STR_MAX_LEN); if (errno_save != 0) { - if (errno_save == ENOENT) { + if (errno_save == ENOENT || errno_save == EINVAL) { if (! ignore_error) { rc = LIBISCSI_ERR_SYSFS_LOOKUP; _error(ctx, "Failed to read '%s': " |