termux-packages/x11-packages/gnuplot-x/plot.c.patch
Leonid Pliushch b490986f7e
new package: gnuplot-x
Same as 'gnuplot' from termux-packages but with X11 support.

Requested in https://github.com/termux/x11-packages/issues/90.
2022-04-18 14:41:32 +05:30

12 lines
488 B
Diff

--- ./src/plot.c.orig 2019-02-08 21:42:42.500914619 +0000
+++ ./src/plot.c 2019-02-08 21:43:56.702190583 +0000
@@ -281,7 +281,7 @@
#endif
/* make sure that we really have revoked root access, this might happen if
gnuplot is compiled without vga support but is installed suid by mistake */
-#ifdef __linux__
+#if defined(__linux__) && !defined(__ANDROID__)
if (setuid(getuid()) != 0) {
fprintf(stderr,"gnuplot: refusing to run at elevated privilege\n");
exit(EXIT_FAILURE);