Skip to content

Conversation

piotrkochan
Copy link

Adds /sigfile <path> parameter to specify custom signature file location.

  • Maintains backward compatibility
  • Falls back to default behavior if custom file unavailable
  • Updated help text

Usage: photorec /sigfile custom.sig [options] [device]

@piotrkochan piotrkochan changed the title Adds /sigfile <path> parameter to specify custom signature file location. Add /sigfile <path> parameter to specify custom signature file location. Sep 27, 2025
@piotrkochan
Copy link
Author

I probably should move static char *custom_sig_file = NULL; to struct ph_param. What do you think, @cgsecurity?

@cgsecurity
Copy link
Owner

I probably should move static char *custom_sig_file = NULL; to struct ph_param. What do you think, @cgsecurity?

As it's only used once, I think it's OK as a "static char*".

As the function set_custom_signature_file() is defined in file_sig.c and not filegen.c, it may be better to define its prototype in a new file file_sig.h instead of filegen.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants