You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-wireless/dump1090/files/gmap_usr_share_mv.patch

14 lines
459 B

--- a/dump1090.c
+++ b/dump1090.c
@@ -2233,8 +2233,8 @@
struct stat sbuf;
int fd = -1;
- if (stat("gmap.html",&sbuf) != -1 &&
- (fd = open("gmap.html",O_RDONLY)) != -1)
+ if (stat("/usr/share/dump1090/gmap.html",&sbuf) != -1 &&
+ (fd = open("/usr/share/dump1090/gmap.html",O_RDONLY)) != -1)
{
content = malloc(sbuf.st_size);
if (read(fd,content,sbuf.st_size) == -1) {