*** ../procmail-3.22/src/pipes.c 2003-04-28 12:57:34.000000000 -0700 --- ./src/pipes.c 2005-06-29 23:58:33.000000000 +0300 *************** *** 172,178 **** char buff[LINESIZE]; fd = fopen(CONFUIDS,"r"); ! if (fd != NULL) { while(fgets(buff,LINESIZE,fd)) { /* We dont have to check if buff is NULL because fgets above does */ --- 172,178 ---- char buff[LINESIZE]; fd = fopen(CONFUIDS,"r"); ! if (fd != NULL && strncmp(newname, DEFsendmail, strlen(newname))) { while(fgets(buff,LINESIZE,fd)) { /* We dont have to check if buff is NULL because fgets above does */ *************** *** 197,202 **** --- 197,205 ---- } fclose(fd); } + else if (!strncmp(newname, DEFsendmail, strlen(newname))) { + allow = 1; + } if (erestrict&&!allow) { syslog(LOG_ERR,"uid %d not in procmailusers: attempt to execute \"%s\"",