* @dfile Name of system activity data file.
* @ignore Set to 1 if a true sysstat activity file but with a bad
* format should not yield an error message. Useful with
- * sadf -H.
+ * sadf -H and sadf -c.
*
* OUT:
* @fd System activity data file descriptor.
if ((n != FILE_MAGIC_SIZE) ||
(file_magic->sysstat_magic != SYSSTAT_MAGIC) ||
((file_magic->format_magic != FORMAT_MAGIC) && !ignore) ||
- (file_magic->header_size > MAX_FILE_HEADER_SIZE) ||
- (file_magic->header_size < FILE_HEADER_SIZE)) {
+ ((file_magic->header_size > MAX_FILE_HEADER_SIZE) && !ignore) ||
+ ((file_magic->header_size < FILE_HEADER_SIZE) && !ignore)) {
/* Display error message and exit */
handle_invalid_sa_file(fd, file_magic, dfile, n);
}
* @act Array of activities.
* @ignore Set to 1 if a true sysstat activity file but with a bad
* format should not yield an error message. Useful with
- * sadf -H.
+ * sadf -H and sadf -c.
*
* OUT:
* @ifd System activity data file descriptor.