Skip to content

Commit

Permalink
Fixes logical issue with patch 219cf39
Browse files Browse the repository at this point in the history
Signed-off-by Christopher Wu<christopher.wu@nxp.com>
  • Loading branch information
chriswu86459 committed Jul 12, 2022
1 parent 8119b5d commit 52ab1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libuuu/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static class FSFlat: public FSBasic
struct stat_os st;
int off = 1;

if (backfile[0] == MAGIC_PATH)
if (backfile[0] != MAGIC_PATH)
off = 0;

return stat_os(backfile.c_str() + off, &st) == 0 && ((st.st_mode & S_IFDIR) == 0);
Expand Down

0 comments on commit 52ab1b0

Please sign in to comment.