]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: use ARRAY_STRING for ENDPOINTS column in JSON output mode
authorMasatake YAMATO <yamato@redhat.com>
Thu, 22 Jun 2023 05:42:34 +0000 (14:42 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 22 Jun 2023 15:51:36 +0000 (00:51 +0900)
commitc289c152a3e956cdb3968903a5fe7e6adf8f4042
tree8c2e1a35f2f6e538202698ae0c8b2bb6a351004a
parent665e28c30275cb331968cb48476a6656629812ca
lsfd: use ARRAY_STRING for ENDPOINTS column in JSON output mode

This is the backport-for-v2.39 version of #2328.

With this change:
  {
     "lsfd": [
        {
           "assoc": "3",
           "endpoints": [
               "9942,test_mkfds,4-w", "9942,test_mkfds,5r-", "9942,test_mkfds,6-w"
           ]
        }
     ]
  }

Without this change:
 {
     "lsfd": [
        {
           "assoc": "3",
           "endpoints": [
               "9942,test_mkfds,4-w\n9942,test_mkfds,5r-\n9942,test_mkfds,6-w"
           ]
        }
     ]
  }

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c