version 1.1, 2009/11/12 10:35:55
|
version 1.1.1.1.2.2, 2009/11/12 11:45:34
|
Line 15 char szUser[MAX_STR], szMount[MAXPATHLEN], szDev[MAXPA
|
Line 15 char szUser[MAX_STR], szMount[MAXPATHLEN], szDev[MAXPA
|
szChroot[MAXPATHLEN], szSess[MAXPATHLEN], szConfig[MAXPATHLEN]; |
szChroot[MAXPATHLEN], szSess[MAXPATHLEN], szConfig[MAXPATHLEN]; |
extern char compiled[], compiledby[], compilehost[]; |
extern char compiled[], compiledby[], compilehost[]; |
|
|
|
|
static void Usage() |
static void Usage() |
{ |
{ |
|
|
Line 192 int main(int argc, char **argv)
|
Line 193 int main(int argc, char **argv)
|
|
|
memset(&ts, 0, sizeof ts); |
memset(&ts, 0, sizeof ts); |
ts.tv_sec = Timeout; |
ts.tv_sec = Timeout; |
switch (kevent(kq, &chg, 1, &evt, 1, &ts)) { | switch (kevent(kq, &chg, 1, &evt, 1, !Timeout ? NULL : &ts)) { |
case -1: |
case -1: |
printf("Error:: can`t execute safe mount #%d - %s\n", |
printf("Error:: can`t execute safe mount #%d - %s\n", |
errno, strerror(errno)); |
errno, strerror(errno)); |