This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
/bin/cyglsa-config and grep
- From: "Illia Bobyr" <Illia dot Bobyr at ronin-capital dot com>
- To: <cygwin-developers at cygwin dot com>
- Date: Thu, 9 Dec 2010 18:16:17 -0600
- Subject: /bin/cyglsa-config and grep
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