Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch

This commit is contained in:
Brian Behlendorf 2009-01-16 14:56:15 -08:00
commit 1d4ad2d62e
2 changed files with 5 additions and 1 deletions

View File

@ -2198,7 +2198,7 @@ err:
free(paths);
(void) close(base);
#endif
return (-1);
return (0);
}
typedef struct zvol_cb {

View File

@ -62,6 +62,10 @@ while getopts 'hvc:p:' OPTION; do
esac
done
if [ $(id -u) != 0 ]; then
die "Must run as root"
fi
check_config || die "${ERROR}"
. ${ZPOOL_CONFIG}