hashdeep icon indicating copy to clipboard operation
hashdeep copied to clipboard

DFXML can't be written to file

Open jessek opened this issue 12 years ago • 3 comments

The Hashdeep DFXML output mode, -d, always writes the output data to stdout. This means the program ignores the -W mode to write the output to a file.

The problem is that in main.cpp, the call to ocb.xml_open(stdout) always gets called with stdout. This call needs to use the file handle opened by the call to ocb.set_outfilename. This may be difficult, as the file handle may not yet be open the -d flag is processed.

jessek avatar Apr 20 '13 07:04 jessek

I'm on it.

Sent from my iPad

On Apr 20, 2013, at 3:25 AM, Jesse Kornblum [email protected] wrote:

The Hashdeep DFXML output mode, -d, always writes the output data to stdout. This means the program ignores the -W mode to write the output to a file.

The problem is that in main.cpp, the call to ocb.xml_open(stdout) always gets called with stdout. This call needs to use the file handle opened by the call to ocb.set_outfilename. This may be difficult, as the file handle may not yet be open the -d flag is processed.

— Reply to this email directly or view it on GitHub.

simsong avatar Apr 20 '13 12:04 simsong

any update on this?

mgrandi avatar Sep 02 '14 22:09 mgrandi

I guess not.

simsong avatar Sep 02 '14 22:09 simsong