* [pve-devel] [PATCH storage] cifs: fix check connection call
@ 2023-06-26 10:58 Fiona Ebner
2023-06-26 18:31 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fiona Ebner @ 2023-06-26 10:58 UTC (permalink / raw)
To: pve-devel
by not having -W eat the next argument when $scfg->{domain} is defined
but empty.
As reported in the community forum [0], this could lead to issues
adding a storage in the UI.
[0]: https://forum.proxmox.com/threads/44983/post-566842
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
Didn't have time to look at why it's not an issue in Proxmox VE 7 yet.
src/PVE/Storage/CIFSPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Storage/CIFSPlugin.pm b/src/PVE/Storage/CIFSPlugin.pm
index 71b85aa..4cab2e1 100644
--- a/src/PVE/Storage/CIFSPlugin.pm
+++ b/src/PVE/Storage/CIFSPlugin.pm
@@ -272,7 +272,7 @@ sub check_connection {
if (my $cred_file = get_cred_file($storeid)) {
push @$cmd, '-U', $scfg->{username}, '-A', $cred_file;
- push @$cmd, '-W', $scfg->{domain} if defined($scfg->{domain});
+ push @$cmd, '-W', $scfg->{domain} if $scfg->{domain};
} else {
push @$cmd, '-U', 'Guest','-N';
}
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH storage] cifs: fix check connection call
2023-06-26 10:58 [pve-devel] [PATCH storage] cifs: fix check connection call Fiona Ebner
@ 2023-06-26 18:31 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2023-06-26 18:31 UTC (permalink / raw)
To: Proxmox VE development discussion, Fiona Ebner
Am 26/06/2023 um 12:58 schrieb Fiona Ebner:
> by not having -W eat the next argument when $scfg->{domain} is defined
> but empty.
>
> As reported in the community forum [0], this could lead to issues
> adding a storage in the UI.
>
> [0]: https://forum.proxmox.com/threads/44983/post-566842
>
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
>
> Didn't have time to look at why it's not an issue in Proxmox VE 7 yet.
>
> src/PVE/Storage/CIFSPlugin.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-26 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-26 10:58 [pve-devel] [PATCH storage] cifs: fix check connection call Fiona Ebner
2023-06-26 18:31 ` [pve-devel] applied: " Thomas Lamprecht
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal