/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2018-02-18 00:40:22 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: teddy@recompile.se-20180218004022-p36ucpmiwok1tkdi
Client: Don't print failures to remove nonexisting files.

* plugins.d/mandos-client.d (main/clean_dir_at): Only print failures
  from unlinkat() if errno != ENOENT.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3083
3083
            clean_dir_at(dir_fd, direntries[i]->d_name, level+1);
3084
3084
            dret = 0;
3085
3085
          }
3086
 
          if(dret == -1){
 
3086
          if((dret == -1) and (errno != ENOENT)){
3087
3087
            fprintf_plus(stderr, "unlink(\"%s/%s\"): %s\n", dirname,
3088
3088
                         direntries[i]->d_name, strerror(errno));
3089
3089
          }