/bin/cyglsa-config and grep

Illia Bobyr Illia.Bobyr@ronin-capital.com
Fri Dec 10 00:16:00 GMT 2010


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


Ilya Bobyr


More information about the Cygwin-developers mailing list