[CRIU] [PATCH] zdtm.sh: set a type argument for mknod

Andrey Vagin avagin at gmail.com
Wed Dec 9 05:29:22 PST 2015


From: Andrey Vagin <avagin at openvz.org>

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 test/zdtm.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 6966cec..0d7f930 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -548,10 +548,10 @@ construct_root()
 	mknod -m 0666 $root/dev/null c 1 3
 	if [ -r "/dev/net/tun" ]; then
 		mkdir $root/dev/net/
-		mknod -m 0666 $root/dev/net/tun $(stat -c "0x%t" /dev/net/tun) $(stat -c "0x%T" /dev/net/tun)
+		mknod -m 0666 $root/dev/net/tun c $(stat -c "0x%t" /dev/net/tun) $(stat -c "0x%T" /dev/net/tun)
 	fi
 	if [ -r "/dev/rtc" ]; then
-		mknod -m 0666 $root/dev/rtc $(stat -c "0x%t" /dev/rtc) $(stat -c "0x%T" /dev/rtc)
+		mknod -m 0666 $root/dev/rtc -c $(stat -c "0x%t" /dev/rtc) $(stat -c "0x%T" /dev/rtc)
 	fi
 
 	mkdir $root/proc
-- 
2.4.3



More information about the CRIU mailing list