Bug 149164 - problems with init script
Summary: problems with init script
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: openswan
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-19 19:18 UTC by Ulrich Drepper
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-02-21 14:52:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.