Ignore:
Timestamp:
05/05/10 14:55:24 (11 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
997614d
Parents:
10cf089
Message:

Complain if we can't open the file for writing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    ra89e2fa r325f86f  
    422422                                DATAOUT(out)->level,
    423423                                DATAOUT(out)->flag);
    424                 if (!DATAOUT(out)->file)
     424
     425                if (!DATAOUT(out)->file) {
     426                        trace_set_err_out(out,errno,"Unable to open file");
    425427                        return -1;
     428                }
    426429
    427430                pcaphdr.magic_number = 0xa1b2c3d4;
     
    446449                if (trace_get_wire_length(packet) >= 4) {
    447450                        hdr.wirelen = trace_get_wire_length(packet)-4;
    448 
    449451                }
    450452                else {
Note: See TracChangeset for help on using the changeset viewer.