[PATCH weston 2/6] weston: Allow relative paths for modules
Bill Spitzak
spitzak at gmail.com
Tue Apr 23 08:10:37 PDT 2013
On 04/23/2013 05:54 AM, Quentin Glidic wrote:
> From: Quentin Glidic <sardemff7+git at sardemff7.net>
> - if (name[0] != '/')
> + if (!strchr(name, '/'))
> snprintf(path, sizeof path, "%s/%s", MODULEDIR, name);
> else
> snprintf(path, sizeof path, "%s", name);
This disallows any subdirectories in MODULEDIR. Is this ok?
An alternative would be to use the name unchanged if it starts with
either '/' or '.' so the user can type "./foo" to get a file in the
current directory.
More information about the wayland-devel
mailing list