]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd) quote '$' in patterns in a case/esac block
authorMasatake YAMATO <yamato@redhat.com>
Sun, 29 Dec 2024 08:44:29 +0000 (17:44 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 29 Dec 2024 10:50:00 +0000 (19:50 +0900)
Suggested by github-advanced-security bot.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/lsfd-functions.bash

index 9c2eb0785b3cd1c589bc582ffbd6f37623240362..1ad2d564a5653d04c4e368aed864a13901ab8f8e 100644 (file)
@@ -114,11 +114,11 @@ function lsfd_check_sockdiag
        case $err in
            0)
                return;;
-           $EPROTONOSUPPORT)
+           "$EPROTONOSUPPORT")
                ts_skip "NETLINK_SOCK_DIAG protocol is not supported in socket(2)";;
-           $EACCES)
+           "$EACCES")
                ts_skip "sending a msg via a sockdiag netlink socket is not permitted";;
-           $ENOENT)
+           "$ENOENT")
                ts_skip "sockdiag netlink socket is not available";;
            *)
                ts_failed "failed to create a sockdiag netlink socket $family ($err): $msg";;