From: <da...@us...> - 2003-07-23 21:00:28
|
Update of /cvsroot/cerber/cerb-ng/examples In directory sc8-pr-cvs1:/tmp/cvs-serv27103 Modified Files: openssh.cb Log Message: Filename-race-save. Index: openssh.cb =================================================================== RCS file: /cvsroot/cerber/cerb-ng/examples/openssh.cb,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- openssh.cb 1 Jul 2003 10:09:29 -0000 1.42 +++ openssh.cb 23 Jul 2003 21:00:24 -0000 1.43 @@ -358,11 +358,12 @@ if (reg[2] @ "/usr/home/*/.ssh" || reg[2] @ "/usr/home/*/.ssh/authorized_keys" || reg[2] @ "/usr/home/*/.ssh/authorized_keys2") { + arg[0] = reg[2]; /* race prevention */ reg[0] = euid; setpeuid(0); reg[1] = call(); - CB_LOG(LOG_INFO, "Calling stat() on %s [real=%s] " - "[ret=%d].", arg[0], reg[2], reg[1]); + CB_LOG(LOG_INFO, "Calling stat() on %s [ret=%d].", + arg[0], reg[1]); setpeuid(reg[0]); return reg[1]; } |