Michal Privoznik
22e785b8ef
virsh: Fix logical error in cmdSetUserSSHKeys()
...
In v6.10.0-rc1~104 I've added a virsh command that exposes
virDomainAuthorizedSSHKeysSet() API under "set-user-sshkeys"
command. The command accepts mutually exclusive "--reset" and
"--remove" options (among others). While the former controls the
VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPEND flag, the latter
controls the VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVE flag.
These flags are also mutually exclusive. But the code that sets
them has a logical error which may result in both flags being
set. In fact, this results in user being not able to set just the
remove flag.
Fixes: 87d12effbea8b414c250b6fefd93154c62a99370
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1904674
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-12-08 14:39:04 +01:00
..
2020-11-10 18:34:18 +01:00
2020-09-02 10:28:10 +02:00
2020-10-07 19:17:53 +02:00
2020-12-04 16:27:22 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2009-09-21 14:41:45 +01:00
2019-08-09 14:06:31 +01:00
2020-11-04 12:18:05 +01:00
2020-12-07 10:38:44 +00:00
2020-09-01 13:22:24 +02:00
2009-09-21 14:41:45 +01:00
2020-09-14 15:52:40 +02:00
2019-12-10 12:41:56 +01:00
2020-11-09 16:29:06 +00:00
2019-07-26 16:48:58 -05:00
2020-09-15 13:46:11 +02:00
2019-08-09 09:18:19 +02:00
2020-12-02 15:43:07 +01:00
2020-11-10 18:34:33 +01:00
2020-12-02 15:43:07 +01:00
2020-11-10 18:34:02 +01:00
2020-12-02 15:43:07 +01:00
2020-11-10 18:34:11 +01:00
2020-12-02 15:43:07 +01:00
2020-11-10 18:34:23 +01:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:10:08 +02:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:15:36 +02:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:20:13 +02:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:16:28 +02:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:17:06 +02:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:07:02 +02:00
2020-12-02 15:43:07 +01:00
2019-08-09 09:18:54 +02:00
2019-12-10 13:49:24 +01:00
2019-06-19 17:12:34 +02:00
2020-11-09 11:28:23 +01:00
2020-01-07 16:12:55 +01:00
2020-12-08 14:39:04 +01:00
2020-11-10 18:34:26 +01:00
2019-10-15 16:14:19 +02:00
2020-11-10 18:34:02 +01:00
2020-08-03 15:30:40 +02:00
2020-11-10 18:34:16 +01:00
2019-06-19 17:12:34 +02:00
2020-11-10 18:34:23 +01:00
2019-06-19 17:12:34 +02:00
2020-10-26 02:39:29 -04:00
2019-08-09 09:03:53 +02:00
2020-10-06 09:01:46 +02:00
2019-06-19 17:12:34 +02:00
2020-10-06 09:01:46 +02:00
2019-06-19 17:12:34 +02:00
2020-10-06 09:01:46 +02:00
2020-08-03 15:30:40 +02:00
2020-10-06 09:01:46 +02:00
2020-08-03 15:30:40 +02:00
2020-09-24 11:19:06 +02:00
2020-08-24 13:32:53 +02:00
2020-10-06 09:01:46 +02:00
2019-06-19 17:12:34 +02:00
2020-11-13 11:12:30 +01:00
2020-08-03 15:30:40 +02:00
2020-10-01 12:34:13 +02:00
2019-06-19 17:12:34 +02:00
2020-09-03 16:25:43 +02:00
2019-06-19 17:12:34 +02:00
2020-05-05 14:45:58 +02:00
2019-06-19 17:12:34 +02:00
2020-11-19 01:18:35 +01:00
2020-06-16 09:43:44 +02:00
2018-10-05 15:53:29 +02:00
2019-06-19 17:12:34 +02:00
2020-08-03 15:30:40 +02:00
2019-06-19 17:12:34 +02:00
2020-09-02 10:28:10 +02:00
2020-10-06 14:26:43 +02:00
2020-01-29 14:51:39 +00:00
2016-06-10 11:03:02 +01:00
2019-07-01 17:20:32 +02:00
2016-04-25 15:40:43 +02:00
2019-09-12 16:06:57 +01:00
2020-10-01 12:34:13 +02:00
2019-06-19 17:12:34 +02:00
2020-11-13 11:12:30 +01:00
2020-11-13 11:12:29 +01:00