ipsec verify fix
"D. Hugh Redelmeier" <[email protected]> Wed, 5 Mar 2003 18:05:57 -0500 (EST)
| Newsgroups | gmane.network.freeswan.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
On my 2.00-rc1 system, I tried "ipsec verify" and got the following
error message (in context):
Checking that pluto is running [OK]
/usr/local/libexec/ipsec/verify: line 207: [: too many arguments
DNS checks.
The fix is easy: add quotes:
207c207
< if [ -z $defaultsrcip ]
- ---
> if [ -z "$defaultsrcip" ]
I've done this in HEAD.
Sam: This change should be applied to 2.00.
programs/verify/verify.in;
new revision: 1.7; previous revision: 1.6
Hugh Redelmeier
[email protected] voice: +1 416 482-8253
PS: I notice that the verify script includes "set -e". I wonder why
it didn't stop for this error.
Another useful setting for long shell scripts: "set -u". This makes
it an error to refer to an undefined variable.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBPmaC2cFAuQPManGZAQFRMAQAt2jpMmvFo1zu1+dCMLsr9SwZR0y1iuon
rdOm8lexQp4WlWKUQfMYx+QyLO5i8OusJuepYBotZIhFz3FDuMqQkgeCXKKblDVK
+RwDuZjaO10RHdMRvMn7opSU55PY7OjTD/479eDDnYdcFHmDHZHu8tvi02/7Fz8W
bIDQH3DxwXk=
=R8yj
-----END PGP SIGNATURE-----