chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f3a091
)
test: Consolidate program name in argl
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 12:22:45 +0000
(13:22 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 22:29:26 +0000
(23:29 +0100)
This avoids pratting about with the weird way execl takes its
arguments. No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/invoke
patch
|
blob
|
history
diff --git
a/test/invoke
b/test/invoke
index 09b18a3154dd993458fb4de7832bead76c5b224f..569e7c39d9633f3d4a5d345655cd2636cbd9a877 100755
(executable)
--- a/
test/invoke
+++ b/
test/invoke
@@
-102,10
+102,10
@@
proc spawn-secnet {which} {
set ch [open $cf w]
puts $ch [mkconf $which]
close $ch
- set argl [list -dvnc $cf]
+ set argl [list
./secnet
-dvnc $cf]
set pid [fork]
if {!$pid} {
- execl
./secnet $argl
+ execl
[lindex $argl 0] [lrange $argl 1 end]
}
puts -nonewline $netlinkfh($which.t) [hbytes h2raw c0]
}