Skip to content

sanitize backlight D-Bus object path#324

Open
Qingwu-Li wants to merge 1 commit intoFedeDP:masterfrom
Qingwu-Li:sanitize-backlight-D-Bus-object-path
Open

sanitize backlight D-Bus object path#324
Qingwu-Li wants to merge 1 commit intoFedeDP:masterfrom
Qingwu-Li:sanitize-backlight-D-Bus-object-path

Conversation

@Qingwu-Li
Copy link
Copy Markdown
Contributor

Backlight sysnames containing invalid D-Bus path characters (e.g. "backlight-lcd") were used as-is to build the object path in both wizard and backlight modules, while Clightd sanitizes them (replacing '-' with '_') at registration time. This path mismatch caused wizard calibration failure and stale entries in the backlight monitor map.

Port make_valid_obj_path() from Clightd and use it in both callers.

Backlight sysnames containing invalid D-Bus path characters (e.g.
"backlight-lcd") were used as-is to build the object path in both
wizard and backlight modules, while Clightd sanitizes them (replacing
'-' with '_') at registration time. This path mismatch caused wizard
calibration failure and stale entries in the backlight monitor map.

Port make_valid_obj_path() from Clightd and use it in both callers.

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant