From 30af8da824b74d63913d5d1fafe5f3dd7cf906e7 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sat, 21 Sep 2024 22:00:44 +0100 Subject: [PATCH] updated pldd.sh --- bin/pldd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pldd.sh b/bin/pldd.sh index c62a809f..0896dea4 100755 --- a/bin/pldd.sh +++ b/bin/pldd.sh @@ -49,13 +49,13 @@ fi max_pid="$(cat /proc/sys/kernel/pid_max)" if ! is_int "$max_pid"; then - die "ERROR: failed to determine max pid of the system, got: $max_pid" + die "ERROR: failed to determine max pid of the system, got: $max_pid" fi if ! is_int "$pid" || ! [ "$pid" -ge 1 ] || ! [ "$pid" -le "$max_pid" ]; then - die "Error: PID '$pid' is not in the valid range of 1 to $max_pid" + die "Error: PID '$pid' is not in the valid range of 1 to $max_pid" fi maps_file="/proc/$pid/maps" @@ -69,7 +69,7 @@ while IFS= read -r line; do # last field contains the file path lib_path="$(awk '{print $NF}' <<< "$line")" - # if the path contains in '.so' its a shared library + # if the path contains in '.so' its a shared library if [[ "$lib_path" =~ \.so$ ]] || [[ "$lib_path" =~ \.so\. ]]; then realpath=$(readlink -f "$lib_path" 2>/dev/null)