Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107249 - ipsec init script does not run correctli (/etc/init.d/ipsec start crashes)
Summary: ipsec init script does not run correctli (/etc/init.d/ipsec start crashes)
Status: RESOLVED DUPLICATE of bug 94681
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-26 01:48 UTC by Dave
Modified: 2005-09-26 03:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave 2005-09-26 01:48:05 UTC
After emerge openswan 2.3.1 the ipsec init-script crashes.

Reproducible: Always
Steps to Reproduce:
1. KEYWORDS="~x86" emerge openswan --> installs openswan version 2.3.1
2. /etc/init.d/ipsec start

Actual Results:  
# /etc/init.d/ipsec start
 * Caching service dependencies ...                                       [ ok ]
* Starting IPSEC ... ...
awk: cmd. line:100:     default[""] = ""
awk: cmd. line:100:     ^ syntax error
awk: cmd. line:205:                     for (i in default)
awk: cmd. line:205:                               ^ syntax error
awk: cmd. line:344:     } else if (search in default)
awk: cmd. line:344:                          ^ syntax error
awk: cmd. line:348:                     default[search] = rest
awk: cmd. line:348:                     ^ syntax error
awk: cmd. line:349:             else
awk: cmd. line:349:             ^ syntax error
awk: cmd. line:410:     if (name in default)
awk: cmd. line:410:                 ^ syntax error
awk: cmd. line:412:     default[name] = value
awk: cmd. line:412:     ^ syntax error
awk: cmd. line:484:             for (name in default)
awk: cmd. line:484:                          ^ syntax error
awk: cmd. line:486:                             output(o_parm, name, default[name])
awk: cmd. line:486:                                                  ^ syntax error
awk: cmd. line:488:             if (default[search] in wanted)
awk: cmd. line:488:                 ^ syntax error
/usr/lib/ipsec/_include: line 100: 10569 Broken pipe             awk 'BEGIN {
        wasfile = ""
}
FNR == 1 {
        print ""
        print "#<", FILENAME, 1
        lineno = 0
        wasfile = FILENAME
}
{
        lineno++
        # lineno is now the number of this line
}
/^#[<>:]/ {
        next
}
/^include[ \t]+/ {
        orig = $0
        sub(/[ \t]+#.*$/, "")
        if (NF != 2) {
                msg = "(" FILENAME ", line " lineno ")"
                msg = msg " include syntax error in \"" orig "\""
                print "#:" msg
                exit 1
        }
        newfile = $2
        if (newfile !~ /^\// && FILENAME ~ /\//) {
                prefix = FILENAME
                sub("[^/]+$", "", prefix)
                newfile = prefix newfile
        }
        system("ipsec _include " newfile)
        print ""
        print "#>", FILENAME, lineno + 1
        next
}
{ print }' $*
ipsec_setup: ipsec setup: /usr/lib/ipsec/_realsetup must be called by ipsec_setup

Expected Results:  
something like
* Starting ipsec ...                       [OK]

I think there are some errors in the init script of ipsec.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-26 03:45:24 UTC

*** This bug has been marked as a duplicate of 94681 ***