/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/usplash.c

* Makefile (run-client): Pass $(CLIENTARGS) to plugin-runner.
  (run-server): Pass $(SERVERARGS) to server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  -*- coding: utf-8 -*- */
2
2
/*
3
 
 * Usplash - Read a password from usplash and output it
 
3
 * Passprompt - Read a password from usplash and output it
4
4
 * 
5
5
 * Copyright © 2008,2009 Teddy Hogeborn
6
6
 * Copyright © 2008,2009 Björn Påhlsson
193
193
        struct stat exe_stat;
194
194
        ret = lstat(exe_link, &exe_stat);
195
195
        if(ret == -1){
196
 
          if(errno == ENOENT){
197
 
            free(exe_link);
198
 
            continue;
199
 
          }
200
196
          perror("lstat");
201
197
          free(exe_link);
202
198
          free(prompt);
212
208
        
213
209
        sret = readlink(exe_link, exe_target, sizeof(exe_target));
214
210
        free(exe_link);
 
211
        if(sret == -1){
 
212
          continue;
 
213
        }
215
214
      }
216
215
      if((sret == ((ssize_t)sizeof(exe_target)-1))
217
216
         and (memcmp(usplash_name, exe_target,