fix(hostname): don't allow machine tags to begin/end with '-' or '.'#60
Conversation
hostname-util: don'"'"'t allow machine tags to begin/end with '-' or '.' Don'"'"'t allow "-" and "." as first or last char. (This is load-bearing, we want that "+"/"-" can be used as prefix for adding/removing tags from the list). Changes: - Add debian/patches/fix-hostname-machine-tag-chars.patch - Modify debian/patches/series - Modify debian/changelog Upstream: systemd/systemd@95c7dc3 Generated-By: glm-5-turbo Co-Authored-By: deepin-ci-robot <packages@deepin.org>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot TAG: 255.2-4deepin31 |
|
TAG Bot New tag: 255.2-4deepin32 |
|
TAG Bot New tag: 255.2-4deepin33 |
|
TAG Bot New tag: 255.2-4deepin34 |
|
TAG Bot New tag: 255.2-4deepin35 |
|
TAG Bot New tag: 255.2-4deepin36 |
Summary
Backport upstream commit 95c7dc33087ae99db8ab8b6614550541a8e7187f which adds validation to reject machine tags that begin or end with '-' or '.' characters. This is load-bearing since '+/-' are used as prefix for adding/removing tags from the list.
Note: The
machine_tag_is_validfunction was introduced in a newer upstream version not present in this codebase, so the patch also includes the function definition with the fix already applied.Changes
Upstream
systemd/systemd@95c7dc33
Generated-By: glm-5-turbo
Co-Authored-By: deepin-ci-robot packages@deepin.org