-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname written to /etc/hostname does not include new-line at end #22729
Comments
@Luap99 Can i pick this up? |
You got it. |
@rhatdan |
@rhatdan
Apologies I didn't found time from few weeks to complete this task, please
help re assign.
Thank you
…On Fri, 31 May 2024, 07:52 Bo Wong, ***@***.***> wrote:
@rhatdan <https://github.com/rhatdan>
I noticed that this issue has not been closed for two weeks. And I wanna
try to make my first contribution for containers/podman . ^_^
—
Reply to this email directly, view it on GitHub
<#22729 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHWWWWSCNPXRRKFGIPSRPVLZE7NFDAVCNFSM6AAAAABH2XM7BWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRGEZDINBRHA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
@ut-wangbo you got it. |
I have created a branch to address this in a forked repository - if you would like me to proceed with a PR for this please let me know. |
If you have a fix, please open a PR. |
As noted in containers#22729: As per debian's hostname (5) man page: > The file should contain a single newline-terminated hostname string. Comments (lines starting with a "#") are ignored. The hostname should be composed of up to 64 7-bit ASCII lower-case alphanumeric characters or hyphens forming a valid DNS domain name. It is recommended that this name contains only a single label, i.e. without any dots. Invalid characters will be filtered out in an attempt to make the name valid, but obviously it is recommended to use a valid name and not rely on this filtering. I have made the change noted in the issue and provided a unit test to ensure that the value written is correct. Signed-off-by: David Graff <[email protected]>
… file debian's man (5) hostname page states "The file should contain a single newline-terminated hostname string." [NO NEW TESTS NEEDED] fix containers#22729 Signed-off-by: Bo Wang <[email protected]>
This issue was closed in June - however was not included into 5.1 - what is the process to request inclusion? |
It will be part of 5.2 which will be released in the next few weeks. |
@Luap99 thank you very much for the super fast response. Truly appreciate the work y'all do! |
As noted in docker, the hostname written to
/etc/hostname
does not include a new-line at the end.As per debian's hostname (5) man page:
The code in question: is here
podman/libpod/container_internal_linux.go
Line 667 in f7a3046
This should be amended to read
The text was updated successfully, but these errors were encountered: