]> git.ipfire.org Git - thirdparty/cups.git/commit
scheduler: Admin task check: Optimized snapctl arguments
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 4 Mar 2021 21:33:10 +0000 (22:33 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 4 Mar 2021 21:33:10 +0000 (22:33 +0100)
commit216c884feadfe606b71ab853ee16bae55aaf89e8
treecbbcb5f07958349fa7fd796e55492cbfeac530e7
parentb64381e9c5935a20daea3e10c74b6e8874d28427
scheduler: Admin task check: Optimized snapctl arguments

Changed the snapctl call from

snapctl is-connected --apparmor-label=AA_CONTEXT CUPS_CONTROL_SLOT

to

snapctl is-connected --apparmor-label AA_CONTEXT CUPS_CONTROL_SLOT

removing the '=' between "--apparmor-label" and "AA_CONTEXT" to make
these two separate arguments and so avoid the need to concatenate the
strings in a buffer.

Did the same with the arguments for the
snapd_client_run_snapctl2_sync() function call.
scheduler/auth.c