duplicity prefers fully-qualified-domain-name (fqdn) over hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Confirmed
|
Medium
|
Unassigned | ||
deja-dup (Fedora) |
New
|
Undecided
|
Unassigned |
Bug Description
Duplicity determines the machine's hostname in order to warn the user about unexpectedly backing up to the same location from two machines.
However, it does this using socket.getfqdn(). It seems many users expect the value of socket.
Now, I don't fully understand exactly the difference between the two calls, so I'm not necessarily advocating for this change. But gethostname() seems to be what most home users at least expect. Is the situation different for server users?
If we made this change, we'd have to be careful to gracfully accept previous uses of getfqdn() that we wrote to manifests. I'd be willing to whip up a patch, Ken, if you think this is a sensible change.
Examples:
=========
(This original report)
Duplicity gives: localhost6.
$ cat /etc/hostname
mybox
$ cat /etc/hosts
192.168.1.5 mybox # Added by NetworkManager
127.0.0.1 localhost.
::1 mybox localhost6.
=========
(Bug 1086068)
Duplicity gives: localhost
$ cat /etc/hostname
computername
$ cat /etc/hosts
127.0.0.1 localhost computername
=========
Changed in deja-dup: | |
status: | New → Confirmed |
affects: | deja-dup → duplicity |
summary: |
- deja-dup gets wrong hostname when ipv6 is disabled + duplicity gets wrong hostname when ipv6 is disabled |
summary: |
- duplicity gets wrong hostname when ipv6 is disabled + duplicity prefers fully-qualified-domain-name (fqdn) over hostname |
description: | updated |
Same problem here, on Fedora 13/dejadup 14.4, FWIW. (I'd test with a newer dejadup, but to get that I need to upgrade, which requires... doing a backup first :)