On Mon, May 21, 2001 at 04:44:33PM -0700, Kai MacTane wrote:
> Well, I know pathetically little C -- basically, enough to write "Hello,
> World!" -- but then again, that's enough to write a program the prints out
> "Your account has been suspended." You could write two or three canned
> messages like this, each in a different executable, and name them
> "suspended-for-spamming", "suspended-for-cracking", and whatever else was
> appropriate, and have each one be a potential login shell.
>
> (Probably the "real C programmer" way to do it would be to have just one
> script, with a variety of canned messages, that checked what name it had
> been invoked under and displayed the appropriate message. Then make all
> those names be symlinks to the one script. But I have no clue how to do
> that in C.)
But the problem was that it might, for instance, buffer overrun, or not catch
SIGINT correctly, which requires more C knowledge than:
printf("Sorry, you don't live here no more.");
Mary.
--
Mary Gardiner
<[EMAIL PROTECTED]>
GPG Key ID: 77625870
_______________________________________________
techtalk mailing list
[EMAIL PROTECTED]
http://www.linux.org.uk/mailman/listinfo/techtalk