From: b Date: Sun, 15 Nov 2015 12:06:19 +0000 (+0000) Subject: Update from src as of 15.11.2015 X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=ott%2Ft1i Update from src as of 15.11.2015 --- diff --git a/posted.awk b/posted.awk index d66d381..d164787 100644 --- a/posted.awk +++ b/posted.awk @@ -1,6 +1,6 @@ #// posted.awk #// Display one entry in the post list -#// 25.04.2015 +#// 15.11.2015 #// #// Copyright (C) 2015 Balthasar Szczepański #// @@ -24,7 +24,10 @@ BEGIN{ { ch=sprintf("%c",i) hex=sprintf("%02X",i); + hexl=sprintf("%02x",i); ch2hex[ch]=hex + hex2ch[hex]=ch + hex2ch[hexl]=ch } }; { @@ -33,7 +36,7 @@ BEGIN{ argtab[substr($0,1,eq-1)]=substr($0,eq+1) }; END{ - if(((pass,!=urldecode(argtab["password"]))||(name!=urldecode(argtab["username"])))&&cat!="st") + if(((pass!=urldecode(argtab["password"]))||(name!=urldecode(argtab["username"])))&&cat!="st") exit 1; if (r2==0) class="plw" diff --git a/posted.c b/posted.c index 08cf4fb..8ead0e0 100644 --- a/posted.c +++ b/posted.c @@ -106,12 +106,15 @@ int main(int argc, char **argv) for(i=0; fgets(line,511,tempfile)!=NULL; ++i) { sscanf(line,"%s",filename); + //printf("+$%s\n",line); sprintf(postpath,"%s%s",WAIT_PATH,filename); fflush(stdout); sub=fork(); if(!sub) { + //dup2(fileno(stdout),fileno(stderr)); + r=execl(MAWK_PATH,MAWK_PATH,"-f",AWK_POSTED,"-v",i&0x1?"r2=1":"r2=0","-v","cat=wt","-v",argp1,"-v",argp2,postpath,(char *)0); exit(r); }