/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/password-prompt.c

  • Committer: teddy at recompile
  • Date: 2011-12-31 14:05:57 UTC
  • mto: This revision was merged to the branch mainline in revision 541.
  • Revision ID: teddy@recompile.se-20111231140557-5u4s7s2122gsw5uq
* network-hooks.s/bridge: Don't use interface names directly; search
                          for interface names using their address.
  (addrtoif): New function.
* network-hooks.s/bridge.conf (PORTS): Removed.
  (PORT_ADDRESSES): New.
* network-hooks.s/wireless: Don't use interface names directly; search
                            for interface names using their address.
  (addrtoif): New function.
* network-hooks.s/wireless.conf: Specify address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    int ret;
125
125
    int cl_fd;
126
126
    {
127
 
      uintmax_t proc_id;
 
127
      uintmax_t maxvalue;
128
128
      char *tmp;
129
129
      errno = 0;
130
 
      proc_id = strtoumax(proc_entry->d_name, &tmp, 10);
 
130
      maxvalue = strtoumax(proc_entry->d_name, &tmp, 10);
131
131
      
132
132
      if(errno != 0 or *tmp != '\0'
133
 
         or proc_id != (uintmax_t)((pid_t)proc_id)){
 
133
         or maxvalue != (uintmax_t)((pid_t)maxvalue)){
134
134
        return 0;
135
135
      }
136
136
    }
514
514
        switch(e){
515
515
        case EBADF:
516
516
          status = EX_UNAVAILABLE;
517
 
          break;
518
517
        case EIO:
519
518
        case EINVAL:
520
519
        default: