I am writing a program that uses chroot, I have created a /dev/null in my chroot (let's say it's called
But any time I try and direct output to /dev/null I get this error:
Anyone got any ideas? Driving me mad!
P.S - please don't lecture me on using chroot and not jails, I need to use chroot in this instance trust me!
/my/chroot/), with the command mknod /my/chroot/dev/null c 15 0 root:wheelBut any time I try and direct output to /dev/null I get this error:
root@testZFS:~ # chroot /my/chroot/
root@testZFS:/ # echo 1 > /dev/null
/dev/null: Invalid argument.Anyone got any ideas? Driving me mad!
P.S - please don't lecture me on using chroot and not jails, I need to use chroot in this instance trust me!