[gnome-commander] Set the port of Samba connections to -1 so that GIO will handle it
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Set the port of Samba connections to -1 so that GIO will handle it
- Date: Thu, 6 Jan 2022 22:27:53 +0000 (UTC)
commit af7074df4368b3fc2aef66f597013205068d1cd7
Author: Uwe Scholz <u scholz83 gmx de>
Date: Thu Jan 6 21:40:57 2022 +0100
Set the port of Samba connections to -1 so that GIO will handle it
src/dialogs/gnome-cmd-con-dialog.cc | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/dialogs/gnome-cmd-con-dialog.cc b/src/dialogs/gnome-cmd-con-dialog.cc
index 7950e0bb..6b3baefe 100644
--- a/src/dialogs/gnome-cmd-con-dialog.cc
+++ b/src/dialogs/gnome-cmd-con-dialog.cc
@@ -560,6 +560,9 @@ gboolean gnome_cmd_connect_dialog_edit (GnomeCmdConRemote *server)
gnome_cmd_con_set_host_name (con, uriHost);
if (uriPort != -1)
gnome_cmd_con_set_port(con, uriPort);
+ // let GIO handle the port of the SMB connection
+ if (!strcmp(uriScheme, "smb") && uriPort != -1)
+ gnome_cmd_con_set_port(con, -1);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]