~ubuntu-branches/ubuntu/precise/rsyslog/precise

« back to all changes in this revision

Viewing changes to plugins/imfile/imfile.c

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2011-11-07 13:54:56 UTC
  • mfrom: (16.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20111107135456-cwt6mu19ski1h2qf
Tags: 5.8.6-1ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Run as rsyslog:rsyslog, set $FileOwner to syslog
  - Replace init script with debian/rsyslog.upstart.
  - debian/rsyslog.logrotate: Use reload command to restart rsyslog
  - debian/rsyslog.conf: enable $RepeatedMsgReduction 
    to avoid bloating the syslog file (LP #453444)
  - Add debian/rsyslog.dmesg.upstart to save initial dmesg into a file.
    Install it in debian/rules.
  - debian/50-default.conf: set of default rules for syslog (forwarded to
    Debian #603160). remove file in postrm on purge. manage with ucf.
  - debian/rules: build with LDFLAGS=""
* Dropped:
  - debian/patches/02-CVE-2011-3200.patch (fixed in upstream release)

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        /* check if the file exists */
148
148
        if(stat((char*) pszSFNam, &stat_buf) == -1) {
149
149
                if(errno == ENOENT) {
150
 
                        /* currently no object! dbgoprint((obj_t*) pThis, "clean startup, no .si file found\n"); */
 
150
                        dbgprintf("filemon %p: clean startup, no .si file found\n", pThis);
151
151
                        ABORT_FINALIZE(RS_RET_FILE_NOT_FOUND);
152
152
                } else {
153
 
                        /* currently no object! dbgoprint((obj_t*) pThis, "error %d trying to access .si file\n", errno); */
 
153
                        dbgprintf("filemon %p: error %d trying to access .si file\n", pThis, errno);
154
154
                        ABORT_FINALIZE(RS_RET_IO_ERROR);
155
155
                }
156
156
        }