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:
parent
52a6ef66f2
commit
800ab95bd5
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user