Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1171748 Details for
Bug 1349664
Incorrect pattern in convert-to-edition.lua clear_presets() results in erroneous removal of non-product presets
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
patch to fix the bug
0001-fix-clear_presets-match-pattern-RHBZ-1349664.patch (text/plain), 1.02 KB, created by
Adam Williamson
on 2016-06-23 23:04:15 UTC
(
hide
)
Description:
patch to fix the bug
Filename:
MIME Type:
Creator:
Adam Williamson
Created:
2016-06-23 23:04:15 UTC
Size:
1.02 KB
patch
obsolete
>From 1b2e0e3e981005b41842b4110fd3f0993e62d721 Mon Sep 17 00:00:00 2001 >From: Adam Williamson <awilliam@redhat.com> >Date: Thu, 23 Jun 2016 16:01:10 -0700 >Subject: [PATCH] fix clear_presets() match pattern (RHBZ #1349664) > >- is a special character in lua matches; this effectively turns >the match into `^8.*%.preset$`, meaning this function will wipe >not just 80-*.preset but 8*.preset, including wiping out some >other important preset files (like 85-display-manager.preset), >unfortunately. See bug report for more details. >--- > convert-to-edition.lua | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/convert-to-edition.lua b/convert-to-edition.lua >index 2a5b9d9..20f847b 100644 >--- a/convert-to-edition.lua >+++ b/convert-to-edition.lua >@@ -64,7 +64,7 @@ end > local function clear_presets() > local path = "/usr/lib/systemd/system-preset" > for file in posix.files(path) do >- if file:match("^80-.*%.preset$") then >+ if file:match("^80%-.*%.preset$") then > os.remove(path .. "/" .. file) > end > end >-- >2.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1349664
: 1171748