summaryrefslogtreecommitdiff
path: root/dh_testroot
blob: 6ce2a1345c336634a5d15b30050ff1768076dab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
#
# Checks to make sure you are root.

BEGIN { push @INC, "debian", "/usr/share/debhelper" }
use Dh_Lib;
init();

# Test for uid = 0, not username of root, becuase
# some people rename root.
if ($< != 0) {
	error("You must run this as root.");
}