On 04/23/2013 05:54 AM, Quentin Glidic wrote:
From: Quentin Glidic <[email protected]>

-       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.

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to