diff options
author | Christian Hesse | 2020-11-06 21:24:53 +0100 |
---|---|---|
committer | Christian Hesse | 2020-11-06 21:24:53 +0100 |
commit | b09212d82f4f80f462e90875952d0886c7b5de72 (patch) | |
tree | 6d983865d5e80d2c4ec6a1cda3e67cf147c7bb72 /netinstall.c | |
parent | 3dc682048aa6299ad6d159965a0cedb219d28447 (diff) | |
download | aur-b09212d82f4f80f462e90875952d0886c7b5de72.tar.gz |
update netinstall.c
Diffstat (limited to 'netinstall.c')
-rw-r--r-- | netinstall.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/netinstall.c b/netinstall.c index 89b8b582d2a0..7a63d1866d5b 100644 --- a/netinstall.c +++ b/netinstall.c @@ -16,6 +16,9 @@ #include <sys/stat.h> #include <unistd.h> +#define WINE_PATH "/usr/bin/wine" +#define NETINSTALL_EXE_PATH "/usr/share/netinstall/netinstall.exe" + int main(int argc, char ** argv) { cap_value_t newcap[1]; cap_t caps = cap_get_proc(); @@ -56,9 +59,8 @@ int main(int argc, char ** argv) { } } - const char *pathname = "/usr/bin/wine"; - char * const newargv[] = { "wine", "/usr/share/netinstall/netinstall.exe", NULL }; - execv(pathname, newargv); + char * const newargv[] = { "wine", NETINSTALL_EXE_PATH, NULL }; + execv(WINE_PATH, newargv); /* execv() returns only on error */ perror("execv"); |