Comment 11 for bug 735072

Revision history for this message
Marcus Haslam (marcus-haslam) wrote : Re: Re: [Bug 735072] Re: The hostname proposed by installer is too long for file sharing to work correctly.
  • unnamed Edit (2.5 KiB, text/enriched; charset=WINDOWS-1252)

I'm out of the office until 1st August.

On 25 Apr 2011, at 19:26, Jelmer Vernooij <email address hidden>
wrote:

> On Mon, 2011-04-25 at 17:02 +0000, Johan Fornander wrote:
> The source code in the official samba git (source/lib/util.c) seems to
> use HOST_NAME_MAX and I found an inconsistency in the code base:
>
> source/lib/replace/replace.h:
> 384 #ifndef HOST_NAME_MAX
> 385 #define HOST_NAME_MAX 255
>
> source/lib/replace/system/network.h
> 269 #ifndef HOST_NAME_MAX
> 270 #define HOST_NAME_MAX 256
>
> Which one is used?
> Neither would/should be used as the Linux system headers already
> define
> HOST_NAME_MAX. These defines are only for platforms that don't have
> HOST_NAME_MAX.
>
> Cheers,
>
> Jelmer
>
> --
> You received this bug notification because you are a member of
> Papercutters, which is subscribed to One Hundred Paper Cuts.
> https://bugs.launchpad.net/bugs/735072
>
> Title:
>  The hostname proposed by installer is too long for file sharing to
>  work correctly.
>
> Status in One Hundred Paper Cuts:
>  Confirmed
> Status in “samba” package in Ubuntu:
>  Triaged
> Status in “ubiquity” package in Ubuntu:
>  Invalid
>
> Bug description:
>  I have an Acer Aspire TimelineX 3820TG notebook running Natty.
>
>  When installing Natty the installer wizard proposed the hostname
>  "johan-aspire-3820" (17 characters). This made it impossible for me
> to
>  share files over the network using a machine running OSX on the other
>  end. Changing the hostname to a shorter (4 characters in my case)
> made
>  file sharing work again after rebooting. I have been using the
> sharing
>  option through right-clicking in nautilus and would like to see the
>  following changes:
>
>  1. A limit of x (depending on samba?) characters for hostname when
> performing a fresh install. If the user wants a longer one this
> could be done using some override setting option.
>  2. Also, when trying to share files through nautilus, check to see
> if the hostname does fit withing the limit x or else give the user
> an option to change this.
>
>  ProblemType: Bug
>  DistroRelease: Ubuntu 11.04
>  Package: software-center 3.1.23.2
>  ProcVersionSignature: Ubuntu 2.6.38-6.34-generic 2.6.38-rc7
>  Uname: Linux 2.6.38-6-generic x86_64
>  NonfreeKernelModules: wl
>  Architecture: amd64
>  Date: Mon Mar 14 17:12:56 2011
>  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64
> (20110119)
>  ProcEnviron:
>   LANGUAGE=en_US:en
>   LANG=en_US.UTF-8
>   SHELL=/bin/bash
>  SourcePackage: software-center
>  UpgradeStatus: No upgrade log present (probably fresh install)