On Thu, May 17, 2007 at 12:27:27PM -0700, Christopher McCrory wrote:
> it looks like amfetchdump is sending misc info to /sbin/restore instead of
> the terminal. ( stdout vs. stderr ?)
Good diagnosis! The source bears out your observation.
Could you try the attached patch, and verify that it solves the problem?
Dustin
--
Dustin J. Mitchell
Storage Software Engineer, Zmanda, Inc.
http://www.zmanda.com/
Index: server-src/find.c
===================================================================
--- server-src/find.c (revision 345)
+++ server-src/find.c (working copy)
@@ -106,7 +106,7 @@
logs += search_logfile(&output_find, tp->label, tp->datestamp,
logfile);
}
if(logs == 0 && strcmp(tp->datestamp,"0") != 0)
- printf("Warning: no log files found for tape %s written %s\n",
+ fprintf(stderr, "Warning: no log files found for tape %s written
%s\n",
tp->label, find_nicedate(tp->datestamp));
}
amfree(logfile);
@@ -189,7 +189,7 @@
}
}
if(logs == 0 && strcmp(tp->datestamp,"0") != 0)
- printf("Warning: no log files found for tape %s written %s\n",
+ fprintf(stderr, "Warning: no log files found for tape %s written
%s\n",
tp->label, find_nicedate(tp->datestamp));
}
amfree(logfile);