Skip to content

Commit

Permalink
Fail silently when path lookup fails for file system object ID. Issue #1
Browse files Browse the repository at this point in the history
. Also bumped version to 0.2.
  • Loading branch information
sveinbjornt committed Apr 26, 2019
1 parent f5720b1 commit c57e6e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
TODO:
* Create brew formula


0.2 - 26/04/2019

* Fixed issue which prevented searchfs from working on older versions of macOS
* Now fails silently when path lookup fails for a file system object ID
* Now runs on macOS 10.7 or later

0.1 - 14/07/2018

* Initial release
5 changes: 4 additions & 1 deletion main.m
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,10 @@ static void do_searchfs_search (const char *volpath, const char *match_string) {
}
}
} else {
fprintf(stderr, "Unable to get path for object ID: %d\n", result_p->obj_id.fid_objno);
// Getting path failed. This may be because the file system object
// was deleted in the interval between being found and path lookup.
// Fail silently.
// fprintf(stderr, "Unable to get path for object ID: %d\n", result_p->obj_id.fid_objno);
}

ptr = (ptr + result_p->size);
Expand Down

0 comments on commit c57e6e8

Please sign in to comment.