- if (copy_input_to_output (input_filename, outfile) != OK) {
- advise (NULL,
- "unable to copy message to %s, it might be lost\n",
- outfile);
+ if ((infp = fopen (input_filename, "r")) == NULL) {
+ adios (input_filename,
+ "unable to open for reading");
+ }
+
+ if (copy_input_to_output (input_filename, infp,
+ outfile, outfp) != OK) {
+ inform("unable to copy message to %s, "
+ "it might be lost\n", outfile);