Skip to content

Commit

Permalink
fsutil: Oops, did my strstr the wrong way round
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Nov 16, 2024
1 parent 03847fa commit 9a44452
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/bsys/bob/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <flamingo/flamingo.h>

#include <assert.h>
#include <errno.h>
#include <libgen.h>
#include <stdbool.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion src/fsutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int set_owner(char const* path) {
return -1;
}

if (strstr(full_path, abs_out_path) != abs_out_path) {
if (strstr(full_path, abs_out_path) != full_path) {
return 0;
}

Expand Down

0 comments on commit 9a44452

Please sign in to comment.