Skip to content

Commit

Permalink
Fix ltfs -o device_list exit code (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
diamant3 authored Nov 27, 2023
1 parent 18ae70c commit 82024a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libltfs/ltfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4371,7 +4371,7 @@ int ltfs_print_device_list(struct tape_ops *ops)
}
}

ret = 0;
//ret = 0;

return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ int main(int argc, char **argv)
if (priv->device_list) {
ret = show_device_list(priv);
ltfs_finish();
return (ret != 0) ? 0 : 1;
return ret ? 1 : 0;
}

/* Validate sync option */
Expand Down

0 comments on commit 82024a9

Please sign in to comment.