Skip to content

Commit

Permalink
fsdb: add missing bufinit() call
Browse files Browse the repository at this point in the history
The bufinit() call in fsck_ffs was moved in commit f190f91
from a function that is shared with fsdb to one that is private to fsck_ffs,
so add a bufinit() call in fsdb to compensate for that.

Reviewed by:	mckusick
Sponsored by:	Netflix
  • Loading branch information
Chuck Silvers authored and Chuck Silvers committed May 25, 2021
1 parent 00e7a55 commit 84768d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sbin/fsdb/fsdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ main(int argc, char *argv[])
fsys = argv[0];

sblock_init();
bufinit();
if (!setup(fsys))
errx(1, "cannot set up file system `%s'", fsys);
if (fswritefd < 0)
Expand Down

0 comments on commit 84768d1

Please sign in to comment.