Skip to content

Commit

Permalink
Merge pull request #1301 from yast/huha-hostname-15-5
Browse files Browse the repository at this point in the history
Allow Host / Domain Names starting with an Underscore [SLE-15-SP5]
  • Loading branch information
shundhammer authored Feb 15, 2024
2 parents 2af3ca0 + 4904e3b commit f654b71
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/types/src/modules/Hostname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def ValidFQ
def Check(host)
return false if host.nil? || host == "" || Ops.greater_than(Builtins.size(host), 63)

Builtins.regexpmatch(host, "^[[:alnum:]]([[:alnum:]-]*[[:alnum:]])?$")
Builtins.regexpmatch(host, "^[[:alnum:]_]([[:alnum:]-]*[[:alnum:]])?$")
end

# Check syntax of domain entry
Expand Down
6 changes: 6 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 15 11:55:58 UTC 2024 - Stefan Hundhammer <shundhammer@suse.com>

- Allow host/domain names starting with an underscore (bsc#1219920)
- 4.5.26

-------------------------------------------------------------------
Mon Mar 6 13:09:12 UTC 2023 - Stefan Hundhammer <shundhammer@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 4.5.25
Version: 4.5.26

Release: 0
Summary: YaST2 Main Package
Expand Down

0 comments on commit f654b71

Please sign in to comment.