]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Add test for "are we running as root".
authorNeilBrown <neilb@suse.de>
Sun, 31 Jan 2010 23:22:38 +0000 (10:22 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 31 Jan 2010 23:22:38 +0000 (10:22 +1100)
commitac5678dd9b67995a84bf2348d82e641d7895415e
tree57cf093b23652147f7ad5ffae45ddfbb782d7cb4
parentcf1be220e276285bda849e3d8f924fca6322fc05
Add test for "are we running as root".

Most operations require root access.  Rather than ensure we generate
the right error message when something fails because we aren't root,
check early.
Note that "--examine" does not necessarily require root, so test
for that first.

Resolves-Debian-bug: 396570
Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.c