This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [cron-config] Possible issue with administrators group ?


2012/5/29 AZ 9901 :
> 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

Hello,

Any clue about this regexp ?

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]