/mandos/trunk

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

« 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
  • 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:
3062
3062
                                                | O_PATH));
3063
3063
    if(dir_fd == -1){
3064
3064
      perror_plus("open");
 
3065
      return;
3065
3066
    }
3066
3067
    int numentries = scandirat(dir_fd, ".", &direntries,
3067
3068
                               notdotentries, alphasort);