1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-27 13:57:26 +03:00

[PATCH] make udev-test.pl test for root permissions before running

Should prevent false error reports from happening.
This commit is contained in:
greg@kroah.com 2004-11-10 18:11:00 -08:00 committed by Greg KH
parent 52a6ef66f2
commit 800ab95bd5

View File

@ -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";