28ab1c
From a1b8660316c7d0a541d9e4139df5c5efe2532365 Mon Sep 17 00:00:00 2001
28ab1c
From: Lukas Nykryn <lnykryn@redhat.com>
28ab1c
Date: Thu, 29 Jul 2021 17:40:26 +0200
28ab1c
Subject: [PATCH] dracut-functions: fix botched backport
28ab1c
28ab1c
Resolves: #1957622
28ab1c
---
28ab1c
 dracut-functions.sh | 2 +-
28ab1c
 1 file changed, 1 insertion(+), 1 deletion(-)
28ab1c
28ab1c
diff --git a/dracut-functions.sh b/dracut-functions.sh
28ab1c
index eb2ce748..d75696fd 100755
28ab1c
--- a/dracut-functions.sh
28ab1c
+++ b/dracut-functions.sh
28ab1c
@@ -208,7 +208,7 @@ get_maj_min() {
28ab1c
 
28ab1c
     if ! [[ "$_out" ]]; then
28ab1c
     _majmin="$(stat -L -c '%t:%T' "$1" 2>/dev/null)"
28ab1c
-        out="$(printf "%s" "$((0x${_majmin%:*})):$((0x${_majmin#*:}))")"
28ab1c
+        _out="$(printf "%s" "$((0x${_majmin%:*})):$((0x${_majmin#*:}))")"
28ab1c
         if [[ $get_maj_min_cache_file ]]; then
28ab1c
             echo "$1 $_out" >> "$get_maj_min_cache_file"
28ab1c
     fi
28ab1c