Hi!

On Tue, May 07, 2024 at 02:23:02AM +0000, PR Bot wrote:
> Author: zhibin.zhu <zhibin....@dbappsecurity.com.cn>
> Number of patches: 1
> 
> This is an automated relay of the Github pull request:
>    fix show-sess-to-flags.sh cob fd state
(...)

> From 95be08c6f4f382ec1b0e34765d4c1f09ddcdebb6 Mon Sep 17 00:00:00 2001
> From: "zhibin.zhu" <zhibin....@dbappsecurity.com.cn>
> Date: Wed, 1 May 2024 18:51:26 +0800
> Subject: [PATCH] fix show-sess-to-flags.sh cob fd state
> 
> ---
>  dev/flags/show-sess-to-flags.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/dev/flags/show-sess-to-flags.sh b/dev/flags/show-sess-to-flags.sh
> index 79003a4f25d8..b352709f3a39 100755
> --- a/dev/flags/show-sess-to-flags.sh
> +++ b/dev/flags/show-sess-to-flags.sh
> @@ -195,7 +195,7 @@ while read -r; do
>                  ! [[ "$REPLY" =~ [[:blank:]]h2c.*\.flg=([0-9a-fx]*) ]] || 
> append_flag b.h2c.flg   h2c  "${BASH_REMATCH[1]}"
>          elif [ $ctx = cob ]; then
>                  ! [[ "$REPLY" =~ [[:blank:]]flags=([0-9a-fx]*) ]]      || 
> append_flag b.co.flg    conn "${BASH_REMATCH[1]}"
> -                ! [[ "$REPLY" =~ [[:blank:]]fd.state=([0-9a-fx]*) ]]   || 
> append_flag b.co.fd.st  fd   "${BASH_REMATCH[1]}"
> +                ! [[ "$REPLY" =~ [[:blank:]]fd.state=([0-9a-fx]*) ]]   || 
> append_flag b.co.fd.st  fd   0x"${BASH_REMATCH[1]#0x}"
>          elif [ $ctx = res ]; then
>                  ! [[ "$REPLY" =~ [[:blank:]]\(f=([0-9a-fx]*) ]]        || 
> append_flag res.flg     chn  "${BASH_REMATCH[1]}"
>                  ! [[ "$REPLY" =~ [[:blank:]]an=([0-9a-fx]*) ]]         || 
> append_flag res.ana     ana  "${BASH_REMATCH[1]}"

Hmm why, what is the problem it tries to solve ? Maybe we don't always
emit the 0x on the output ? Please try to provide a bit of info that
can be added to the commit message.

Thanks!
Willy

Reply via email to