Skip to content

Commit

Permalink
Reopening file should not be identified as an error
Browse files Browse the repository at this point in the history
  • Loading branch information
dvertx authored and XVilka committed Jul 25, 2023
1 parent ba84a92 commit d1fd135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions librz/core/cfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ RZ_API bool rz_core_file_reopen(RzCore *core, const char *args, int perm, int lo
rz_core_file_set_by_file(core, file);
ofile = NULL;
odesc = NULL;
// core->file = file;
RZ_LOG_ERROR("File %s reopened in %s mode\n", path,
RZ_LOG_WARN("File %s reopened in %s mode\n", path,
(perm & RZ_PERM_W) ? "read-write" : "read-only");

if (loadbin && (loadbin == 2 || had_rbin_info)) {
Expand Down
2 changes: 1 addition & 1 deletion test/db/archos/linux-x64/dbg_oo
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ RUN

NAME=ood check for ptrace errors
FILE=bins/elf/analysis/x86-helloworld-gcc
ARGS=-e log.level=5
ARGS=-e log.level=4
CMDS=<<EOF
ood
EOF
Expand Down

0 comments on commit d1fd135

Please sign in to comment.