[PATCH 1/2] xxd: obey output file parameter for postscript hexdump

2011-01-11 Thread Florian Zumbiehl
Hi, xxd so far always writes to standard out when generating a postscript hexdump, even when an output file has been specified. The patch below fixes that. Florian diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c index 41f8a24..9f47fef 100644 --- a/src/xxd/xxd.c +++ b/src/xxd/xxd.c @@ -707,17 +707,17

[PATCH 2/2] xxd: don't ignore error returns

2011-01-11 Thread Florian Zumbiehl
Hi, xxd so far for the most part just ignores any errors, happily aborting with success on I/O errors, chewing away on the CPU when the destination FS is full, and the like. The patch below (hopefully) fixes that. Florian diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c index 9f47fef..b042755 100644 -

Re: [PATCH 2/2] xxd: don't ignore error returns

2011-01-12 Thread Florian Zumbiehl
Hi, > > xxd so far for the most part just ignores any errors, happily aborting > > with success on I/O errors, chewing away on the CPU when the destination > > FS is full, and the like. The patch below (hopefully) fixes that. > > Thanks. Is there some way to simplify this? Passing pname in some

Re: [PATCH 2/2] xxd: don't ignore error returns

2011-01-12 Thread Florian Zumbiehl
Hi, > xxd so far for the most part just ignores any errors, happily aborting > with success on I/O errors, chewing away on the CPU when the destination > FS is full, and the like. The patch below (hopefully) fixes that. Below another instance I missed before - to be applied after that pname simpl

Re: [PATCH 1/2] xxd: obey output file parameter for postscript hexdump

2011-01-19 Thread Florian Zumbiehl
Hi, > Florian Zumbiehl wrote: > > > xxd so far always writes to standard out when generating a postscript > > hexdump, even when an output file has been specified. The patch below > > fixes that. > > Thanks, I'll put it in the todo list. So, can I drop all f