Bug 149164

Summary: problems with init script
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper>
Component: openswanAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-21 14:52:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ulrich Drepper 2005-02-19 19:18:05 UTC
Description of problem:
openswan's init script has two problems:

/etc/init.d/ipsec: line 50: [: too many arguments
/usr/sbin/ipsec: unknown IPsec command `_confread' (`ipsec --help' for list)

The first problem is due to insufficient quoting.  The second is due to lib ->
lib64.


Version-Release number of selected component (if applicable):
openswan-2.3.0-3.x86_64

How reproducible:
always (at least the second one)

Steps to Reproduce:
1.run script
2.
3.
  
Actual results:
see above

Expected results:
no messages

Additional info:

The first problem can be corrected with

-[ `tty` != '/dev/console' ] && TTY=1;
+[ "`tty`" != '/dev/console' ] && TTY=1;

Or maybe even better, start using $( ) instead of backticks.


For biarch 64-bit platforms this is needed:

-IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/lib/ipsec}"
+IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/lib64/ipsec}"

I guess the best way to deal with this is to rewrite the file during
compilation.  I haven't looked at the package, though.