* getent group fails
@ 2014-05-07 17:39 Denis Excoffier
2014-05-08 9:14 ` Corinna Vinschen
0 siblings, 1 reply; 5+ messages in thread
From: Denis Excoffier @ 2014-05-07 17:39 UTC (permalink / raw)
To: Cygwin Mailing List
Hello,
I'm under x86, with no /etc/nsswitch.conf, and my /etc/passwd and group
files with 1 line each (me and 'Domain Users'). The command
'getent group' seems to loop forever on the 'Users' group:
% /usr/bin/getent group
Domain Users:S-1-5-21-878717028-1334384809-310601177-513:10513:
+Users:S-1-5-32-545:545:
...
+Users:S-1-5-32-545:545:
^C
%
'getent passwd' seems ok (9 lines): my line and 8 lines beginning
with '+’.
I tried several snapshots (including 20140507), and this bahaviour
was already present in snapshot 20140410 (the first one where the
"Corinna's prize-winning passwd/group rewrite" was reintroduced). It
was not present in snapshot 20140305.
Regards,
Denis Excoffier.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: getent group fails
2014-05-07 17:39 getent group fails Denis Excoffier
@ 2014-05-08 9:14 ` Corinna Vinschen
2014-05-09 17:06 ` Denis Excoffier
0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2014-05-08 9:14 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
On May 7 19:39, Denis Excoffier wrote:
> Hello,
>
> I'm under x86, with no /etc/nsswitch.conf, and my /etc/passwd and group
> files with 1 line each (me and 'Domain Users'). The command
> 'getent group' seems to loop forever on the 'Users' group:
>
> % /usr/bin/getent group
> Domain Users:S-1-5-21-878717028-1334384809-310601177-513:10513:
> +Users:S-1-5-32-545:545:
> ...
> +Users:S-1-5-32-545:545:
> ^C
> %
>
> 'getent passwd' seems ok (9 lines): my line and 8 lines beginning
> with '+’.
>
> I tried several snapshots (including 20140507), and this bahaviour
> was already present in snapshot 20140410 (the first one where the
> "Corinna's prize-winning passwd/group rewrite" was reintroduced). It
> was not present in snapshot 20140305.
Thanks for the report. I made a dumb Copy/paste error. This should
be fixed in the today's snapshot from http://cygwin.com/snapshots/
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: getent group fails
2014-05-08 9:14 ` Corinna Vinschen
@ 2014-05-09 17:06 ` Denis Excoffier
2014-05-10 11:57 ` Corinna Vinschen
2014-05-10 13:05 ` Andrey Repin
0 siblings, 2 replies; 5+ messages in thread
From: Denis Excoffier @ 2014-05-09 17:06 UTC (permalink / raw)
To: cygwin
On 2014-05-09 11:13, Corinna Vinschen wrote:
> On May 7 19:39, Denis Excoffier wrote:
> Thanks for the report. I made a dumb Copy/paste error. This should
> be fixed in the today's snapshot from http://cygwin.com/snapshots/
Indeed, it is working now.
Also, i have noticed that 'getent group' produces this line:
+Utilisateurs authentifiés:S-1-5-11:11:
(with \303\251 meaning é, like under UTF-8)
while 'getent passwd' produces (among other lines):
+SERVICE RÉSEAU:*:20:20:,S-1-5-20:/:/sbin/nologin
(with \311 meaning É, like under ISO-Latin)
This is with LC_CTYPE=fr_FR, no /etc/nsswitch.conf, /etc/passwd
and /etc/group with only one line each, domain member with currently no
network connected, under Cygwin 32bits 'Just Me', installed on top of
XP SP3 32bits [french only], with snapshot '20140508 19:51:25’,
and all packages up-to-date.
If i setenv LC_CTYPE C, or unsetenv LC_CTYPE, i also get UTF-8 for
'getent passwd' (ie for both).
What bothers me is that under LC_CTYPE=fr_FR (or fr_FR@euro), the
getent output is not consistent.
Regards,
Denis Excoffier.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: getent group fails
2014-05-09 17:06 ` Denis Excoffier
@ 2014-05-10 11:57 ` Corinna Vinschen
2014-05-10 13:05 ` Andrey Repin
1 sibling, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2014-05-10 11:57 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]
On May 9 19:06, Denis Excoffier wrote:
> On 2014-05-09 11:13, Corinna Vinschen wrote:
> > On May 7 19:39, Denis Excoffier wrote:
> > Thanks for the report. I made a dumb Copy/paste error. This should
> > be fixed in the today's snapshot from http://cygwin.com/snapshots/
>
> Indeed, it is working now.
>
> Also, i have noticed that 'getent group' produces this line:
>
> +Utilisateurs authentifiés:S-1-5-11:11:
> (with \303\251 meaning é, like under UTF-8)
>
> while 'getent passwd' produces (among other lines):
>
> +SERVICE RÉSEAU:*:20:20:,S-1-5-20:/:/sbin/nologin
> (with \311 meaning É, like under ISO-Latin)
>
> This is with LC_CTYPE=fr_FR, no /etc/nsswitch.conf, /etc/passwd
> and /etc/group with only one line each, domain member with currently no
> network connected, under Cygwin 32bits 'Just Me', installed on top of
> XP SP3 32bits [french only], with snapshot '20140508 19:51:25’,
> and all packages up-to-date.
>
> If i setenv LC_CTYPE C, or unsetenv LC_CTYPE, i also get UTF-8 for
> 'getent passwd' (ie for both).
>
> What bothers me is that under LC_CTYPE=fr_FR (or fr_FR@euro), the
> getent output is not consistent.
I can't explain that. In both cases, getent calls setlocale(LC_ALL, "").
In both cases, the account information comes as UTF-16 string from
the OS and is converted to multibyte in Cygwin.
The only (vague) idea I have is that this may be a result of caching.
If the first account ("authenticated users") has been fetched while
LANG was still set to "C" or "C.UTF-8", it would explain this
discrepancy.
Which shows that using non UTF-8 locales is not such a good idea. There
is a chicken-egg problem. Early initialization always uses UTF-8 for
hopefully obvious reasons. Using UTF-8 in all multibyte scenarios is
really the way to go in future.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: getent group fails
2014-05-09 17:06 ` Denis Excoffier
2014-05-10 11:57 ` Corinna Vinschen
@ 2014-05-10 13:05 ` Andrey Repin
1 sibling, 0 replies; 5+ messages in thread
From: Andrey Repin @ 2014-05-10 13:05 UTC (permalink / raw)
To: Denis Excoffier, cygwin
Greetings, Denis Excoffier!
>> Thanks for the report. I made a dumb Copy/paste error. This should
>> be fixed in the today's snapshot from http://cygwin.com/snapshots/
> Indeed, it is working now.
> Also, i have noticed that 'getent group' produces this line:
> +Utilisateurs authentifiГ©s:S-1-5-11:11:
> (with \303\251 meaning é, like under UTF-8)
> while 'getent passwd' produces (among other lines):
> +SERVICE RЙSEAU:*:20:20:,S-1-5-20:/:/sbin/nologin
> (with \311 meaning É, like under ISO-Latin)
> This is with LC_CTYPE=fr_FR, no /etc/nsswitch.conf, /etc/passwd
> and /etc/group with only one line each, domain member with currently no
> network connected, under Cygwin 32bits 'Just Me', installed on top of
> XP SP3 32bits [french only], with snapshot '20140508 19:51:25’,
> and all packages up-to-date.
> If i setenv LC_CTYPE C, or unsetenv LC_CTYPE, i also get UTF-8 for
> 'getent passwd' (ie for both).
Do you by chance set any of the LC_* variables separately anywhere?
> What bothers me is that under LC_CTYPE=fr_FR (or fr_FR@euro), the
> getent output is not consistent.
I've seen a problem with locales in UTF-8 vs. singlebyte terminal encodings,
but it was supposedly fixed.
But I only set LANG=, and let the subsystem do the magic.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 10.05.2014, <16:57>
Sorry for my terrible english...
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-10 13:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 17:39 getent group fails Denis Excoffier
2014-05-08 9:14 ` Corinna Vinschen
2014-05-09 17:06 ` Denis Excoffier
2014-05-10 11:57 ` Corinna Vinschen
2014-05-10 13:05 ` Andrey Repin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).