http://asphyx-lj.livejournal.com/ ([identity profile] asphyx-lj.livejournal.com) wrote in [personal profile] vitus_wagner 2007-02-12 03:27 pm (UTC)

Юзер с именем "-fvitus"? Сомневаюсь, что такой будет :)

Кстати, NetKit'овский telnetd просто делает вот так:

if (getenv("USER")) {
  addarg(&avs, getenv("USER"));
  if (*getenv("USER") == '-') {
    write(1,"I don't hear you!\r\n",19);
    syslog(LOG_ERR,"Attempt to login with an option!");
    exit(1);
  }
}


Так что ничто, начинающееся с "-" не подсунешь.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting