Skip to content

Commit

Permalink
Merge branch 'main' into test1234
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissie-c committed Nov 16, 2023
2 parents 799032f + a3201f5 commit 681b84f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/ringbuffer_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,11 @@ qb_rb_close_helper(struct qb_ringbuffer_s * rb, int32_t unlink_it,
truncate_fallback);

/* the dirname part is assumed to be the same */
assert(!strncmp(dir_path, hdr_path, sep - data_path));
if (strncmp(dir_path, hdr_path, sep - data_path)) {
qb_util_perror(LOG_DEBUG,
"header path is corrupted: %s", hdr_path);
res = -ENXIO;
}

sep = hdr_path + (sep - data_path);
/* now, don't touch neither data_path nor hdr_path */
Expand Down
2 changes: 1 addition & 1 deletion tests/sock_ipc_wrapper.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/sh -e
#!/bin/sh -e
# filesystem socket IPC test
if [ "$(uname -s)" = "Linux" ] && [ "`id -u`" = "0" ]
then
Expand Down

0 comments on commit 681b84f

Please sign in to comment.