diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/udev-test.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index e615a1eda8..e8ce0b44dd 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1275,6 +1275,13 @@ sub run_test { } +# only run if we have root permissions +# due to mknod restrictions +if (!($<==0)) { + print "Must have root permissions to run properly.\n"; + exit; +} + # prepare system("rm -rf $udev_root"); mkdir($udev_root) || die "unable to create udev_root: $udev_root\n"; |