Summary: | knetattach - can't select high ssh ports | ||
---|---|---|---|
Product: | [Applications] knetattach | Reporter: | Jens Weibler <bugs-kde> |
Component: | general | Assignee: | Unknown <null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | danarmak, mikkel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch to fix limit... |
Description
Jens Weibler
2005-07-02 14:27:52 UTC
...And since fish:// etc urls allow ports upto 65535, so should knetattach. here the same problem, i want to connect to the port 46814 but i can't write down the port number. (using debian unstable, kde 3.5.0-3) knetattach-wizard for sftp only accepts port up to 32768 .. i want to use 56789 While I find it odd that knetattach doesn't allow all valid ports (up to 65535), you can enter the correct port manually in a .desktop file. On my KDE 3.4 at least, they are located in ~/.kde3.4/share/apps/remoteview Edit to fit your needs. filename: EXAMPLE.desktop contents of the file: [Desktop Entry] Icon=package_network Name=EXAMPLE Type=Link URL=fish://USERNAME@ADDRESS:PORT/ This bug is not Gentoo-specific. I do not know C++, but it would seem that whoever made the Network Folder Wizard used a signed int for the port number value - which obviously is a bug, and hopefully, it should not be too much trouble to fix :) Found fix: See: http://websvn.kde.org/*checkout*/trunk/KDE/kdebase/knetattach/knetattach.ui <widget class="QSpinBox" name="_port" > <property name="sizePolicy" > <sizepolicy> <hsizetype>1</hsizetype> <vsizetype>0</vsizetype> <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="maximum" > <number>32768</number> </property> <property name="minimum" > <number>1</number> </property> </widget> should be replaced with: <widget class="QSpinBox" name="_port" > <property name="sizePolicy" > <sizepolicy> <hsizetype>1</hsizetype> <vsizetype>0</vsizetype> <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="maximum" > <number>65535</number> </property> <property name="minimum" > <number>1</number> </property> </widget> Created attachment 20193 [details]
Patch to fix limit...
I made this patch using diff.. havnt used diff much, so i hope I made it
correctly. Please commit this to /trunk/KDE/kdebase/knetattach/knetattach.ui
Applied in (at least) 4.1 beta2 |