]> git.proxmox.com Git - grub2.git/blob - tests/hfs_test.in
usb: Avoid possible out-of-bound accesses caused by malicious devices
[grub2.git] / tests / hfs_test.in
1 #!@BUILD_SHEBANG@
2
3 set -e
4
5 if [ "x$EUID" = "x" ] ; then
6 EUID=`id -u`
7 fi
8
9 if [ "$EUID" != 0 ] ; then
10 exit 77
11 fi
12
13 if ! which mkfs.hfs >/dev/null 2>&1; then
14 echo "mkfs.hfs not installed; cannot test HFS."
15 exit 77
16 fi
17
18 if ! modprobe mac-roman; then
19 echo "no mac-roman support; cannot test HFS."
20 exit 77
21 fi
22
23 "@builddir@/grub-fs-tester" hfs