/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

* plugins.d/password-prompt.c (conflict_detection): Check for both
                                                    "plymouth" and
                                                    "plymouthd".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1032
1032
int good_interface(const struct dirent *if_entry){
1033
1033
  ssize_t ssret;
1034
1034
  char *flagname = NULL;
1035
 
  if(if_entry->d_name[0] == '.'){
1036
 
    return 0;
1037
 
  }
1038
1035
  int ret = asprintf(&flagname, "%s/%s/flags", sys_class_net,
1039
1036
                     if_entry->d_name);
1040
1037
  if(ret < 0){
1041
1038
    perror("asprintf");
1042
1039
    return 0;
1043
1040
  }
 
1041
  if(if_entry->d_name[0] == '.'){
 
1042
    return 0;
 
1043
  }
1044
1044
  int flags_fd = (int)TEMP_FAILURE_RETRY(open(flagname, O_RDONLY));
1045
1045
  if(flags_fd == -1){
1046
1046
    perror("open");
1047
 
    free(flagname);
1048
1047
    return 0;
1049
1048
  }
1050
 
  free(flagname);
1051
1049
  typedef short ifreq_flags;    /* ifreq.ifr_flags in netdevice(7) */
1052
1050
  /* read line from flags_fd */
1053
1051
  ssize_t to_read = (sizeof(ifreq_flags)*2)+3; /* "0x1003\n" */