This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: /bin/cyglsa-config and grep
On Dec 9 18:16, Illia Bobyr wrote:
> Hi,
>
> After I have used /bin/cyglsa-config my system starts behaving oddly.
> It appeared to be caused by the "Authentication Packages" registry entry
> been set to an incorrect value by the cyglsa-config script.
> I have GREP_OPTIONS set to a value that includes --line-number and the
> script uses grep to filter the original value of the registry entry. As
> my grep prepends line numbers by default my new registry entry value was
> something line this:
>
> 1:msv1_0
> 2:setuid
> C:\cyginw\bin\cyglsa\cyglsa.dll
>
> What is syntactically incorrect.
>
> What do you think about the following patch:
>
> --- /bin/cyglsa-config.orig 2010-05-11 12:30:39.024938300 -0500
> +++ /bin/cyglsa-config 2010-05-11 12:31:07.837807100 -0500
> @@ -92,7 +92,7 @@
> old=`regtool get "${value}"`
> new=`for i in ${old}
> do
> - echo $i | grep -v cyglsa
> + echo $i | GREP_OPTIONS="" grep -v cyglsa
> done`
> if ! regtool set "${value}" ${new} "${bindir}\\cyglsa\\${dll}"
> then
Thank you for the patch, I applied it.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat