Skip to content

Commit

Permalink
mandatory user + pass
Browse files Browse the repository at this point in the history
  • Loading branch information
bucciarati committed Oct 16, 2010
1 parent 3c7ae0b commit d6f310d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion notifidle.c
Expand Up @@ -106,12 +106,17 @@ int main (int argc, char * const argv[]){
globals.mailbox = strdup(optarg);
break;
default:
fprintf(stderr, "wtf use with -h host -p port\n");
fprintf(stderr, "wtf? use with -h host -P port -u user -p pass -m mailbox\n");
exit(1);
break;
}
}

if(!globals.user || !globals.pass){
fprintf(stderr, "missing one of -u user -p pass\n");
exit(1);
}

struct hostent *he;
struct sockaddr_in servr = {
.sin_family = AF_INET,
Expand Down

0 comments on commit d6f310d

Please sign in to comment.