← Back to team overview

desktop-packages team mailing list archive

[Bug 856732] [NEW] gnome-user-share fails to discover a port for webdav server

 

Public bug reported:

gnome-user-share (as of 3.0.0, as seen in Oneiric beta) tries to
discover a free port to run Apache on by bind()ing a struct sockaddr_in
with no port specified in src/http.c:get_port(). However, it neglects to
specify an address family, so that attempt fails with EINVAL, and the -1
returned gets passed to spawn_httpd() as the port that Apache should be
listening on, which causes to Apache promptly and silently bail. I've
attached a debdiff that contains a patch fixing this by specifying
AF_INET as the address family.

** Affects: gnome-user-share (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-user-share in Ubuntu.
https://bugs.launchpad.net/bugs/856732

Title:
  gnome-user-share fails to discover a port for webdav server

Status in “gnome-user-share” package in Ubuntu:
  New

Bug description:
  gnome-user-share (as of 3.0.0, as seen in Oneiric beta) tries to
  discover a free port to run Apache on by bind()ing a struct
  sockaddr_in with no port specified in src/http.c:get_port(). However,
  it neglects to specify an address family, so that attempt fails with
  EINVAL, and the -1 returned gets passed to spawn_httpd() as the port
  that Apache should be listening on, which causes to Apache promptly
  and silently bail. I've attached a debdiff that contains a patch
  fixing this by specifying AF_INET as the address family.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-user-share/+bug/856732/+subscriptions


Follow ups

References