[screen] не стартует от пользователя "none" (return code 0)

Модератор: /dev/random

Ответить
Аватара пользователя
Stauffenberg
Сообщения: 2042
Статус: ☮ PEACE ☮
ОС: открытая и свободная

[screen] не стартует от пользователя "none"

Сообщение Stauffenberg »

Всем привет.

Не подскажет кто-то из UNIX/Linux специалистов, с чем может быть связано столь интересное и в то же время непонятное поведение GNU screen?
Labor omnia vincit

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Спасибо сказали:
Аватара пользователя
Bizdelnick
Модератор
Сообщения: 20752
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: [screen] не стартует от пользователя "none"

Сообщение Bizdelnick »

Код: Выделить всё

/*
 * Add a new user. His password may be NULL or "" if none. His name must not
 * be "none", as this represents the NULL-pointer when dealing with groups.
 * He has default rights, determined by umask.
 */
int
UserAdd(name, pass, up)
char *name, *pass;
struct acluser **up;
{
#ifdef MULTIUSER
  int j;
#endif

  if (!up)
    up = FindUserPtr(name);
  if (*up)
    {
      if (pass)
        (*up)->u_password = SaveStr(pass);
      return 1;         /* he is already there */
    }
  if (strcmp("none", name))     /* "none" is a reserved word */
    *up = (struct acluser *)calloc(1, sizeof(struct acluser));
и так далее
Пишите правильно:
в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик
Спасибо сказали:
Аватара пользователя
Stauffenberg
Сообщения: 2042
Статус: ☮ PEACE ☮
ОС: открытая и свободная

Re: [screen] не стартует от пользователя "none"

Сообщение Stauffenberg »

Bizdelnick писал(а):
26.05.2015 16:09
и так далее

Догадывался, что фича, но почему-то засомневался и стал думать, что баг (:
Labor omnia vincit

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” (Brian Kernighan)
Спасибо сказали:
Ответить