Make sure the call tap-creator with the new program name
This commit is contained in:
@@ -524,8 +524,8 @@ TapBridge::CreateTap (void)
|
||||
//
|
||||
// Execute the socket creation process image.
|
||||
//
|
||||
status = ::execlp ("tap-creator",
|
||||
"tap-creator", // argv[0] (filename)
|
||||
status = ::execlp (TAP_CREATOR,
|
||||
TAP_CREATOR, // argv[0] (filename)
|
||||
ossDeviceName.str ().c_str (), // argv[1] (-d<device name>)
|
||||
ossGateway.str ().c_str (), // argv[2] (-g<gateway>)
|
||||
ossIp.str ().c_str (), // argv[3] (-i<IP address>)
|
||||
|
||||
@@ -43,12 +43,14 @@ def build(bld):
|
||||
]
|
||||
|
||||
if not bld.env['PLATFORM'].startswith('freebsd'):
|
||||
obj = bld.create_suid_program('tap-creator')
|
||||
obj.source = [
|
||||
tap_creator = bld.create_suid_program('tap-creator')
|
||||
tap_creator.source = [
|
||||
'model/tap-creator.cc',
|
||||
'model/tap-encode-decode.cc',
|
||||
]
|
||||
|
||||
module.env.append_value("DEFINES", "TAP_CREATOR=\"%s\"" % (tap_creator.target,))
|
||||
|
||||
if bld.env['ENABLE_EXAMPLES']:
|
||||
bld.add_subdirs('examples')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user