mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
require vanilla-pipe to run as root
This commit is contained in:
parent
e9bd0fa30f
commit
20f48c01a6
1 changed files with 6 additions and 0 deletions
|
@ -1,12 +1,18 @@
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "vanilla.h"
|
#include "vanilla.h"
|
||||||
#include "wpa.h"
|
#include "wpa.h"
|
||||||
|
|
||||||
int main(int argc, const char **argv)
|
int main(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
|
if (geteuid() != 0) {
|
||||||
|
pprint("vanilla-pipe must be run as root\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
pprint("vanilla-pipe - brokers a connection between Vanilla and the Wii U\n");
|
pprint("vanilla-pipe - brokers a connection between Vanilla and the Wii U\n");
|
||||||
pprint("--------------------------------------------------------------------------------\n");
|
pprint("--------------------------------------------------------------------------------\n");
|
||||||
|
|
Loading…
Reference in a new issue