Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
all:

# Macros related to the version of the agent
VERSION = 1.48.4
VERSION = 1.48.5
SDK_VERSION = 1.0.0

# Default value for configuration macros
Expand Down
3 changes: 3 additions & 0 deletions src/libevp-agent/module_impl_obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ module_impl_obj_load(struct module *m, const struct Module *modspec)
return EINVAL;
}
} else if (ret != ENOENT) {
/* Clean up the module if some IO error occurs. */
plat_mod_fs_file_unlink(m);

/* some IO error in check_hash */
return ret;
}
Expand Down
6 changes: 4 additions & 2 deletions src/libevp-agent/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ plat_mod_fs_file_mmap(struct module *module, const void **data, size_t *size,
struct stat sb;
if (fstat(fd, &sb) == -1) {
*error = errno;
xlog_error("%s: error on stat: %d", __func__, *error);
xlog_error("%s: error on stat %s(%d): errno=%d", __func__,
filename, fd, *error);
goto failure;
}

Expand All @@ -145,7 +146,8 @@ plat_mod_fs_file_mmap(struct module *module, const void **data, size_t *size,

if (addr == MAP_FAILED) {
*error = errno;
xlog_error("%s: error on mmap: %d", __func__, errno);
xlog_error("%s: error on mmap %s(%d): errno=%d, st_size=%zu",
__func__, filename, fd, errno, sb.st_size);
goto failure;
}

Expand Down
2 changes: 1 addition & 1 deletion version.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

VERSION = 1.48.4
VERSION = 1.48.5
COMMIT_HASH = $(shell git describe --always --abbrev=0 --dirty --match "NOT A TAG")

define VERSION_BODY
Expand Down
Loading