/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 01:05:16 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: teddy@recompile.se-20180218010516-zh4ofizjqeaj3t5z
Client: Bug fix: Don't try to clean directory which fails to open

* plugins.d/mandos-client.d (main/clean_dir_at): Return immediately if
  directory fails to open.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3095
3095
      
3096
3096
      /* need to clean even if 0 because man page doesn't specify */
3097
3097
      free(direntries);
 
3098
      if(numentries == -1){
 
3099
        perror_plus("scandirat");
 
3100
      }
3098
3101
      dret = unlinkat(base, dirname, AT_REMOVEDIR);
3099
3102
      if(dret == -1 and errno != ENOENT){
3100
3103
        perror_plus("rmdir");