[Xfce-bugs] [Bug 8150] [PATCH] Fix for simple_parse_line when ] is used in the line.

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Sat Jan 7 04:33:56 CET 2012


https://bugzilla.xfce.org/show_bug.cgi?id=8150

Eric <b9xs0dtwmy at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b9xs0dtwmy at hotmail.com

--- Comment #3 from Eric <b9xs0dtwmy at hotmail.com> 2012-01-07 04:33:56 CET ---
http://git.xfce.org/xfce/xfdesktop/tree/src/xfdesktop-file-icon-manager.c
1783:xfdesktop_file_icon_manager_get_cached_icon_position
calls if(xfce_rc_has_group(rcfile, name))

http://git.xfce.org/xfce/libxfce4util/tree/libxfce4util/xfce-rc.c
xfce-rc.c:407:xfce_rc_has_group (const XfceRc *rc, const gchar *group)
calls _xfce_rc_config_has_group

http://git.xfce.org/xfce/libxfce4util/tree/libxfce4util/xfce-rc-config.c
xfce-rc-config.c:331:_xfce_rc_config_has_group (const XfceRc *rc,
calls _xfce_rc_simple_has_group

http://git.xfce.org/xfce/libxfce4util/tree/libxfce4util/xfce-rc-simple.c
xfce-rc-simple.c:928:_xfce_rc_simple_has_group (const XfceRc *rc
and we get to
xfce-rc-simple.c:667: if (!simple_parse_line (line, &section, &key, &value,
&locale))

Where the bug prevents xfce_rc_has_group from returning true because
xfce-rc-simple.c:330: for (q = ++p; *q != '\0' && *q != ']'; ++q)
stops at the first ']' rather than the last in the line.

So it's the group name and not a key=value pair.

-- 
Configure bugmail: https://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Xfce-bugs mailing list