/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: 2014-06-07 20:27:17 UTC
  • Revision ID: teddy@recompile.se-20140607202717-j5hiiinwg6osy9ss
Minor bug fix in mandos-client: Allow periods in network hook names.

* plugins.d/mandos-client.c (runnable_hook): Add "." to strspn() call
                                             to match documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1335
1335
  sret = strspn(direntry->d_name, "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1336
1336
                "abcdefghijklmnopqrstuvwxyz"
1337
1337
                "0123456789"
1338
 
                "_-");
 
1338
                "_.-");
1339
1339
  if((direntry->d_name)[sret] != '\0'){
1340
1340
    /* Contains non-allowed characters */
1341
1341
    if(debug){
2486
2486
  if(debug){
2487
2487
    fprintf_plus(stderr, "Starting Avahi loop search\n");
2488
2488
  }
2489
 
 
 
2489
  
2490
2490
  ret = avahi_loop_with_timeout(simple_poll,
2491
2491
                                (int)(retry_interval * 1000), &mc);
2492
2492
  if(debug){
2596
2596
        free(fullname);
2597
2597
      }
2598
2598
    }
2599
 
 
 
2599
    
2600
2600
    /* need to clean even if 0 because man page doesn't specify */
2601
2601
    free(direntries);
2602
2602
    if(numentries == -1){