sshock / AFFLIBv3

AFF is an open and extensible file format to store disk images and associated metadata.
Other
77 stars 20 forks source link

'affcat -b' does not work #56

Closed chrfranke closed 5 months ago

chrfranke commented 5 months ago
$ affcat -b file.aff
affcat: unknown option -- b
affcat version 3.7.20
...
    -b      --- Output BADFALG for bad blocks (default is NULLs)
...

The reason is quite obvious: 'b' is missing in the getopt() string:

    while ((ch = getopt(argc, argv, "s:S:p:lLh?dqnvr:")) != -1) {
      ...
    case 'b':
        opt_badflag = 1;
        break;
      ...
    }

Apparently never tested since the early days :-)

sshock commented 5 months ago

Apparently never tested since the early days :-)

Yeah, very interesting. Alright, well I'll go ahead and allow it to work.