From: "Dmitry V. Levin" <ldv@alt-linux.org> To: devel@altlinux.ru Subject: Re: [devel] getlogin broken in glibc-2.2.4-alt2 Date: Mon, 24 Sep 2001 22:17:53 +0400 Message-ID: <20010924221753.A6117@ldv.office.alt-linux.org> (raw) In-Reply-To: <20010924214737.A10743@voins.local> [-- Attachment #1: Type: text/plain, Size: 1903 bytes --] On Mon, Sep 24, 2001 at 09:47:38PM +0400, Alexey Voinov wrote: > > > > $ rpm -q glibc glibc-devel > > > > glibc-2.2.4-alt2 > > > > glibc-devel-2.2.4-alt2 > > > > > > > > a.out - это маленькая програмка, корая лежитт в аттаче, > > > > печатает ответ от функции getlogin. Функция документированная, > > > > никаких пометок относительно obsoleted или deprecated я не заметил. > > > > > > > > $ ./a.out > > > > getlogin returned: LOGIN > > > > > > > > А вроде как должно сказать: voins. > > > > > > > > Есть подозрение, что это буг в glibc. > > Это наименее вероятно. > Даже спорить не буду :) > > $ rpm -q login su pam > login-0.60-alt5 > su-0.60-alt5 > pam-0.75-alt10 Из-за семинара запоздал с ответом. Проблема была в login/su (один из моих патчей конфликтовал с utmp handling в другой части кода), исправлено в SimplePamApps-0.60-alt6. > В консоли > > $ /home/voins/projects/a.out > getlogin returned: LOGIN правильно. > $ su -l voins -c /home/voins/projects/a.out > getlogin returned: LOGIN правильно. > В xterm > > $ /home/voins/projects/a.out > getlogin returned: (null) правильно. > $ su -l voins -c /home/voins/projects/a.out > getlogin returned: voins правильно. > Если у su не вводить пароль, то в /var/log/messages падает замечательная > строчка: > authentication failure; logname=LOGIN uid=500 euid=0 tty=tty2 ruser=LOGIN rhost=localhost user=root Понятно теперь, откуда взялся LOGIN. > У меня на работе не сильно обновлённая система. Завтра попробую там. Нет необходимости, уже исправлено. Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@alt-linux.org ALT Linux Team http://www.altlinux.ru/ Fandra Project http://www.fandra.org/ +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2001-09-24 18:17 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-23 10:38 Alexey Voinov 2001-09-23 17:04 ` Sergey Vlasov 2001-09-24 9:37 ` Dmitry V. Levin 2001-09-24 17:47 ` Alexey Voinov 2001-09-24 18:13 ` Ivan Zakharyaschev 2001-09-24 18:17 ` Dmitry V. Levin [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010924221753.A6117@ldv.office.alt-linux.org \ --to=ldv@alt-linux.org \ --cc=devel@altlinux.ru \ --cc=devel@linux.iplabs.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git