Skip to content
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

Filter sysctl *.conf files #1173

Merged
merged 9 commits into from
Jun 8, 2021
4 changes: 3 additions & 1 deletion library/general/src/lib/cfa/sysctl_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def file_paths_in(path)
if Yast::FileUtils.IsFile(path)
[path]
elsif Yast::FileUtils.IsDirectory(path)
Yast::SCR.Read(Yast::Path.new(".target.dir"), path).map { |file| File.join(path, file) }
Yast::SCR.Read(Yast::Path.new(".target.dir"), path)
.select { |f| f.end_with?(".conf") } # according to 'sysctl.conf' manpage, only .conf files are considered
.map { |f| File.join(path, f) }
else
log.debug("Ignoring not valid path: #{path}")

Expand Down
Empty file.
8 changes: 8 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jun 8 08:26:13 UTC 2021 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Ignore sysctl configuration files that do not have the .conf
extension. The only exception are kernel files
(/boot/sysctl.conf-*) (bsc#1187018).
- 4.3.63

-------------------------------------------------------------------
Thu Jun 3 09:04:29 UTC 2021 - Josef Reidinger <jreidinger@suse.com>

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


Name: yast2
Version: 4.3.62
Version: 4.3.63

Release: 0
Summary: YaST2 Main Package
License: GPL-2.0-only
Expand Down