sleuthkit / scalpel

Scalpel is an open source data carving tool. It is not being actively maintained.
620 stars 101 forks source link

The return value of getopt is an int, not a char #25

Closed marcan closed 3 years ago

marcan commented 7 years ago

This fixes the option parser on architectures with an unsigned 'char', where scalpel previously just silently exited, as -1 becomes 255.

okoeroo commented 3 years ago

Bump: I have made exactly the same patch on my system, finding out that this one has not been merged yet.

bcarrier commented 3 years ago

Disclaimer: I didn't test this. But, it looks reasonable.