| @@ -674,6 +674,8 @@ void pr_encours(void) | |||||
| #define CUT6 "|cut -d' ' -f6" | #define CUT6 "|cut -d' ' -f6" | ||||
| #define CUTM45 "|cut -d' ' -f1-3,6-" | #define CUTM45 "|cut -d' ' -f1-3,6-" | ||||
| #define CUT7S "|cut -d' ' -f7-" | #define CUT7S "|cut -d' ' -f7-" | ||||
| #define NOTF "non trouve !!??" | |||||
| #define ENOVAL "Element non valable !" | |||||
| #define FHISTO ".octave_history" | #define FHISTO ".octave_history" | ||||
| #define AWK5 "|awk '{ print $5}'" | #define AWK5 "|awk '{ print $5}'" | ||||
| @@ -704,7 +706,7 @@ pid_t pid; | |||||
| case '+' : | case '+' : | ||||
| if (*(cmd+1) != '\0') { | if (*(cmd+1) != '\0') { | ||||
| if (litligne(cmd+1)) { /* ajout au fichier fauth */ | if (litligne(cmd+1)) { /* ajout au fichier fauth */ | ||||
| if (debloqueIP(cmd+1,NULL)) printf("Element non valable !\n"); | |||||
| if (debloqueIP(cmd+1,NULL)) printf("%s\n",ENOVAL); | |||||
| else { | else { | ||||
| if (printQ("ajouter au fichier parametres")) | if (printQ("ajouter au fichier parametres")) | ||||
| ajoutParam(fauth,cmd+1); | ajoutParam(fauth,cmd+1); | ||||
| @@ -716,7 +718,7 @@ pid_t pid; | |||||
| case '-' : | case '-' : | ||||
| if (*(cmd+1) != '\0') { | if (*(cmd+1) != '\0') { | ||||
| if (litligne(cmd)) { /* ajout au fichier fauth */ | if (litligne(cmd)) { /* ajout au fichier fauth */ | ||||
| if (rebloqueIP(cmd+1)) printf("Element non valable !\n"); | |||||
| if (rebloqueIP(cmd+1)) printf("%s\n",ENOVAL); | |||||
| else { | else { | ||||
| if (printQ("ajouter au fichier parametres")) | if (printQ("ajouter au fichier parametres")) | ||||
| ajoutParam(fauth,cmd); | ajoutParam(fauth,cmd); | ||||
| @@ -1068,9 +1070,9 @@ int Inter=0, i, ie, np=0, opt; | |||||
| if Vie { | if Vie { | ||||
| markElt(ie,4); refU = Turl[ie]; | markElt(ie,4); refU = Turl[ie]; | ||||
| } else { | } else { | ||||
| if (T1) printf("Elt %d non trouve !!??\n",np); | |||||
| syslog(LOG_WARNING,"ERR: Elt %d non trouve !!??\n",np); | |||||
| refU = NULL; | |||||
| if (T1) printf("Elt %d %s\n",np,NOTF); | |||||
| syslog(LOG_WARNING,"ERR: Elt %d %s\n",np,NOTF); | |||||
| continue; | |||||
| } | } | ||||
| if (!verifIPOk(s2, refU)) | if (!verifIPOk(s2, refU)) | ||||
| if Vie syslog(LOG_INFO,"Deblocage IP4 %s",refU); | if Vie syslog(LOG_INFO,"Deblocage IP4 %s",refU); | ||||