- if(strncmp(crypt(argv[2],(temp+5)),(temp+5),13)==0)
+ while(fgets(temp2,30,passwd_h)) {
+ int mylen=strlen(temp2);
+ if((mylen>=1) && (temp2[mylen-1]=='\n')) {
+ if((mylen>=2) && (temp2[mylen-2]==0x0d)) {
+ mylen-=2;
+ temp2[mylen]=0;
+ printf("dosfile!\n");
+ }
+ else
+ temp2[--mylen]=0;
+ }
+ if(mylen>=1) {
+ if(strncmp(crypt(temp2,(temp+5)),(temp+5),13)==0) {