hallo,
i installed the update for the syslogd.
this little program hangs my 6.4 system hard when run for <1min as a
regular user:
------------ start ----------------
#include
#include
#include
int main () {
syslog( 1, "%1$*1$s", "str" );
exit (0);
}
------------- end -----------------
it consumes 100% of the cpu time.
you can still ping it but can not telnet/rsh/ssh into it.
can not login from the console either --> enter the user name --> never
prompts you for the passwd.
i have to press the reset button.
maybe my system is screwed up but i do not have another system to test it
on.
moreover, it looks like syslog() will write anything in the
/var/log/messages without specifying the id of the user who wrote the
"stuff".
well, it is fun to pick on the university sysadmins logging cool
"errors" such as:
------------------------------------------------------
Sep 20 09:24:21 quake a.out: you have been owned by "name of the professor
you do not like goes here"
------------------------------------------------------
why can normal users write to /var/log/messages via syslogd?
can anybody else reproduce the "hang" with syslog()
-alexm