GNOME Bugzilla – Bug 660658
gnome-user-share passes "Listen -1" to apache
Last modified: 2011-10-17 15:46:26 UTC
NOTE: judging from the code in git, this bug also affects the 3.x. This happens because bind() fails in http.c:get_port(): [pid 18669] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 17 [pid 18669] setsockopt(17, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 [pid 18669] bind(17, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = -1 EAFNOSUPPORT (Address family not supported by protocol) This is with kernel 3.0... not sure if it used to work in the past. Additionally, gnome-user-share does seems to ignore the fact that apache failed to start. There's no indication that something went wrong at the GUI level. The user is just left wondering why enabling file sharing doesn't seem to have any visible effect.
The main bug appears to be a 3.0 regression: https://bugzilla.kernel.org/show_bug.cgi?id=42012 The bug is currently unavailable because kernel.org is down. Folow the thread here: http://permalink.gmane.org/gmane.linux.network/205328 The second part of the bug (no feedback to user when apache fails to start) still stands.
There is a patch for the first problem on launchpad: https://bugs.launchpad.net/ubuntu/+source/gnome-user-share/+bug/856732 Also, see https://bugzilla.redhat.com/show_bug.cgi?id=738428
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 660146 ***
This part is still unfixed: Additionally, gnome-user-share does seems to ignore the fact that apache failed to start. There's no indication that something went wrong at the GUI level. The user is just left wondering why enabling file sharing doesn't seem to have any visible effect. Shall I file a separate bug for this?
(In reply to comment #4) > This part is still unfixed: > > Additionally, gnome-user-share does seems to ignore the fact that apache > failed to start. There's no indication that something went wrong at the GUI > level. The user is just left wondering why enabling file sharing doesn't > seem to have any visible effect. > > Shall I file a separate bug for this? Sure, though I won't fix it, gnome-user-share will be merged into GNOME proper at some point soon, and that particular code will probably die.