STUMP - Bugs: bug #59261, Nonsensical conditional in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #59261: Nonsensical conditional in hostname.REPLACEMENT
Submitter: | Tristan Miller <psychonaut> | ||
Submitted: | Tue 13 Oct 2020 12:28:22 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | Ready For Test |
Privacy: | Public | Assigned to: | rayner |
Open/Closed: | Open | Planned Release: | 2.6 |
Thu 13 Oct 2022 11:04:03 PM UTC, comment #3: |
Rayner Lucas <rayner> |
Fri 07 Oct 2022 12:27:28 AM UTC, comment #2: The conditional is backwards anyway, the -f flag should cause the command to print the FQDN.
|
Rayner Lucas <rayner> |
Thu 15 Oct 2020 04:30:45 PM UTC, comment #1: The: if [ "x$1" = "-f" ] ; then
|
Mike Keith <mysidia> |
Tue 13 Oct 2020 12:28:22 PM UTC, original submission:
The hostname.REPLACEMENT script, which is supposed to be a "drop-in replacement for hostname" on certain BSD-derived systems, consists of the following code:
|
Tristan Miller <psychonaut> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-06-23 | rayner | Planned Release | None | 2.6 | |
2022-10-13 | rayner | Status | None | Ready For Test | |
Assigned to | None | rayner |
Powered by Savane 3.13-d3ae.
Corresponding source code
Opted to remove the hostname.REPLACEMENT script altogether, along with the reference to it in modenv.
The rationale for this is:
1. It never worked like it was supposed to.
2. As far as I can see, inews/rnews don't invoke the hostname command anyway. Possibly some very old versions did?
3. It's supposed to be a workaround for a problem on BSD-ish systems, but our STUMP installation on NetBSD has been working for many years without using hostname.REPLACEMENT or encountering the problem it's supposed to fix. And as Mike says, the script just emits the FQDN, which is what modern BSD hostname does by default. This all implies the problem it was meant to solve no longer exists.