chiark / gitweb /
test: Move sockets in a subdirectory
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 21:14:04 +0000 (22:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Oct 2019 22:29:26 +0000 (23:29 +0100)
They need to be not world-accessible and this is the easiest way.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
test/common.tcl

index 189d5c77e4587d4d68b2864df3351182f8ede9d1..59b10baeef34ede637d0588832048172b6055be8 100644 (file)
@@ -157,7 +157,8 @@ proc sendpkt {} {
 
 file mkdir test/tmp
 set tmp test/tmp
-set socktmp $tmp
+set socktmp $tmp/s
+exec mkdir -p -m700 $socktmp
 regsub {^(?!/)} $socktmp {./} socktmp ;# dgram-socket wants ./ or /
 
 proc prefix_preload {lib} {