After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168203 - [PATCH] Add support for the FreeBSD SSH
[PATCH] Add support for the FreeBSD SSH
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Other
cvs (head)
Other FreeBSD
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 168861 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-22 23:11 UTC by Joe Marcus Clarke
Modified: 2006-07-14 11:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Fix some FreeBSD build and functional issues (1.44 KB, patch)
2005-02-22 23:12 UTC, Joe Marcus Clarke
needs-work Details | Review
New patch that applies to gnome-vfs HEAD (1.39 KB, patch)
2005-05-12 16:38 UTC, Joe Marcus Clarke
none Details | Review
gnome-vfs-2.10.1-fbsd.patch (792 bytes, patch)
2005-08-20 11:10 UTC, Diego Elio Pettenò
none Details | Review
gnome-vfs-2.11.92-fbsd.patch (612 bytes, patch)
2005-08-25 22:45 UTC, Diego Elio Pettenò
none Details | Review
gnome-vfs-2.11.92-fbsd.patch (1.01 KB, patch)
2005-08-25 23:17 UTC, Diego Elio Pettenò
committed Details | Review

Description Joe Marcus Clarke 2005-02-22 23:11:37 UTC
Please describe the problem:
Attached are patches that fix three problems in gnome-vfs.

The first checks to see that the lagacy EAI_ADDRFAMILY and EAI_NODATA macros are
defined before using them.  They have been obsoleted in FreeBSD 5.X and later.

The second adds support for the FreeBSD SSH "password:" and "Password:" (note
the lack of a trailing space) prompts.

The third fixes a build issue with GCC 2.95.x by removing a redundant semi-colon.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Joe Marcus Clarke 2005-02-22 23:12:16 UTC
Created attachment 37803 [details] [review]
Fix some FreeBSD build and functional issues
Comment 2 Christian Neumair 2005-05-01 19:50:03 UTC
Thanks for your efforts. We heavily appreciate your patch.
Comment 3 Christian Neumair 2005-05-09 16:19:41 UTC
*** Bug 168861 has been marked as a duplicate of this bug. ***
Comment 4 Christian Neumair 2005-05-10 17:30:15 UTC
Maybe you could update your patch to apply cleanly against HEAD?
The combined "if defined" statement against libgnomevfs/gnome-vfs-resolve.c was
bogus, since each of them should be compiled in independently if the other one
isn't defined. Because HEAD already has the EAI_ADDRFAMILY bits, you'd simply
have to add another "if defined" statement :).
Comment 5 Joe Marcus Clarke 2005-05-12 16:38:01 UTC
Created attachment 46375 [details] [review]
New patch that applies to gnome-vfs HEAD
Comment 6 Christian Kellner 2005-05-12 16:56:31 UTC
If we are already using g_str_has_prefix (buffer, "prefix") and don't see any
reasion why whe should not *only* check for the diffrent passwords prompts
without the trailing space. I mean "Password: blalba" has "Password: " and
"Password:" as prefix right? The EAI_NODATA part looks good for me though!
Comment 7 Joe Marcus Clarke 2005-05-12 18:18:05 UTC
I agree that g_str_has_prefix() would be a better choice, and would preclude the
need for my additional patches.
Comment 8 Christophe Fergeau 2005-06-24 21:34:23 UTC
Maybe some ssh servers have prompts like "Please enter your password" ? (just
wildly trying to guess why there are both g_str_has_suffix and g_str_has_prefix)
Comment 9 Diego Elio Pettenò 2005-08-20 11:10:52 UTC
Created attachment 51023 [details] [review]
gnome-vfs-2.10.1-fbsd.patch

The EAI_NODATA part of the original patch assume that EAI_ADDRFAMILY is defined
only if EAI_NODATA is defined. This one (over 2.10.1) allows EAI_ADDRFAMILY to
be defined without EAI_NODATA.

Hope to see this fixed soon as Gentoo/FreeBSD needs it, too.
Comment 10 Joe Marcus Clarke 2005-08-20 18:52:11 UTC
Diego, I resubmitted the patch a few months ago against HEAD at the time to fix
this problem.  Now, gnome-vfs does check for EAI_ADDRFAMILY, but not for EAI_NODATA.
Comment 11 Diego Elio Pettenò 2005-08-20 19:04:26 UTC
I seen that but not having an HEAD checkout handy (and needing anyway the full 
patch against 2.10) I just re-did that. Anyway attachment #46375 [details] make 
EAI_ADDRFAMILY fallback to "case EAI_SYSTEM: return 
gnome_vfs_result_from_errno ();" if it's defined but EAI_NODATA is not. I 
can't tell if there's a case where EAI_ADDRFAMILY is defined but EAI_NODATA 
no, but better safe than sorry, it avoids adding a possible fallback error 
doing the checks for both before adding the code. 
 
Without checking for EAI_NODATA it still breaks so the check is needed for a 
clean build. 
 
The patch (at least in theory) should apply with an ignored chunk (modifies 
already contained in original file)... if it's a problem I can get an HEAD 
checkout and do the same. 
 
Sorry if I've misunderstood something. 
Comment 12 Diego Elio Pettenò 2005-08-25 22:45:40 UTC
Created attachment 51350 [details] [review]
gnome-vfs-2.11.92-fbsd.patch

Equivalent of attachment 51023 [details] [review] patch but over 2.11.92 ..
Hunk #1 of attachment 46375 [details] [review] breaks when EAI_NODATA is not defined but
EAI_EADDRFAMILY is. This makes sure that if either one of the two is present it
gets the right handling.
Comment 13 Diego Elio Pettenò 2005-08-25 23:17:05 UTC
Created attachment 51354 [details] [review]
gnome-vfs-2.11.92-fbsd.patch

Actually this patch is better, as it *really* fix the build of gnome-vfs
2.11.92 ... we have chances to get this fixed before 2.12 release?
Comment 14 Christian Kellner 2005-11-30 23:42:32 UTC
Sorry dudes I must have totally overlooked that bug here. I committed the
EAI_NODATA part to cvs HEAD. I am going to rename the bug for the renaming
part.adds support for the FreeBSD SSH
Comment 15 Hans Nieser 2006-01-17 16:03:12 UTC
Hi, it seems the "password: " / "Password:" issue is still around as of 2.12.2, I looked at the CVS HEAD and couldn't see a fix for it. Has it been decided not to fix this? I am only commenting on this because I ran into the issue of not being able to contact FreeBSD OpenSSH servers on Gentoo using gnome-vfs-2.12.2. It seems Gentoo used to have a patch for the "password: " / "Password:" issue but removed it, presumably because they thought it was fixed upstream, which as far as I can see wasn't (but I could be wrong). I also left a comment in their bugzilla at http://bugs.gentoo.org/show_bug.cgi?id=103130 .

I'm sorry for barging in here without a patch, I did try to come up with something but I have never written more than a handful lines of C code and would probably do more harm than good ;)
Comment 16 Christian Neumair 2006-04-06 21:43:23 UTC
Hans: The Password issue was filed as bug 322390 and fixed in GnomeVFS 2.14.
Comment 17 Christian Neumair 2006-07-14 11:09:55 UTC
Setting status of attachment 46376 [details] to obsolete because its bit are included in other (committed) patches.

Attachment 51354 [details] seems to be marked as committed although the include addition (<sys/params.h>) isn't committed to modules/file-method.c.

No complaints, and the issue is not mentioned by any reporter, so I'm assuming that it the modification wasn't neccessary.

Feel free to reopen this bug report or file a new one if you still have build issues.