Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hannum <[email protected]>
  • Loading branch information
markhannum committed Dec 23, 2024
1 parent e0cc6ba commit 97df609
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/cdb2_printlog/cdb2_printlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ int tool_cdb2_printlog_main(argc, argv)
while ((ch = getopt(argc, argv, "h:s:gNP:rVl:")) != EOF)
switch (ch) {
case 'h':
chdir(optarg);
ret = chdir(optarg);
if (ret) {
fprintf(stderr, "%s chdir(%s) errno:%d (%s)\n", __func__,
optarg, errno, strerror(errno));
exit(1);
}
home = optarg;
break;
case 'N':
Expand Down

0 comments on commit 97df609

Please sign in to comment.