public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [cron-config] Possible issue with administrators group ?
@ 2012-05-29 16:17 AZ 9901
  2012-05-31 13:45 ` AZ 9901
  0 siblings, 1 reply; 6+ messages in thread
From: AZ 9901 @ 2012-05-29 16:17 UTC (permalink / raw)
  To: cygwin

Hello,

I am looking at the /bin/cron-config script.

Line 627, we can find :
elif net localgroup "${_admingroup}" | grep -Eiq "^${username}.?$"; then

Why .? at the end of the regexp ? "^${username}.?$"

We could have problems if for example we already have "user1" in
administrators group, and cron user is "user2".
"user2" would then not be added to the administrators group.

Do we have some buggy output from "net localgroup" on some Windows
versions to use .? at the end of the regexp ?

On my Windows XP, using grep -iq "^${username}$" works perfectly.
What about other Windows versions ?

Thank you very much !

Best regards,

Ben

--
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] 6+ messages in thread

end of thread, other threads:[~2012-05-31 18:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-29 16:17 [cron-config] Possible issue with administrators group ? AZ 9901
2012-05-31 13:45 ` AZ 9901
2012-05-31 16:18   ` Eric Blake
2012-05-31 17:49     ` AZ 9901
2012-05-31 17:56       ` Dirk Sondermann
2012-05-31 19:23         ` AZ 9901

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).