<div dir="ltr">You should drop the code changes since they already allow relative paths. You just changed it to only allow base filenames.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 2:54 PM, Quentin Glidic <span dir="ltr"><<a href="mailto:sardemff7+wayland@sardemff7.net" target="_blank">sardemff7+wayland@sardemff7.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Quentin Glidic <<a href="mailto:sardemff7%2Bgit@sardemff7.net">sardemff7+git@sardemff7.net</a>><br>
<br>
Signed-off-by: Quentin Glidic <<a href="mailto:sardemff7%2Bgit@sardemff7.net">sardemff7+git@sardemff7.net</a>><br>
---<br>
man/weston.man | 4 ++--<br>
src/compositor.c | 2 +-<br>
2 files changed, 3 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/man/weston.man b/man/weston.man<br>
index a25e619..97db3c8 100644<br>
--- a/man/weston.man<br>
+++ b/man/weston.man<br>
@@ -102,7 +102,7 @@ Load<br>
.I backend.so<br>
instead of the default backend. The file is searched for in<br>
.IR "__weston_modules_dir__" ,<br>
-or you can pass an absolute path. The default backend is<br>
+or you can pass a path. The default backend is<br>
.I __weston_native_backend__<br>
unless the environment suggests otherwise, see<br>
.IR DISPLAY " and " WAYLAND_DISPLAY .<br>
@@ -131,7 +131,7 @@ instead of writing them to stderr.<br>
Load the comma-separated list of modules. Only used by the test<br>
suite. The file is searched for in<br>
.IR "__weston_modules_dir__" ,<br>
-or you can pass an absolute path.<br>
+or you can pass a path.<br>
.TP<br>
\fB\-\^S\fR\fIname\fR, \fB\-\-socket\fR=\fIname\fR<br>
Weston will listen in the Wayland socket called<br>
diff --git a/src/compositor.c b/src/compositor.c<br>
index 693df2c..fe51061 100644<br>
--- a/src/compositor.c<br>
+++ b/src/compositor.c<br>
@@ -3349,7 +3349,7 @@ load_module(const char *name, const char *entrypoint)<br>
char path[PATH_MAX];<br>
void *module, *init;<br>
<br>
- if (name[0] != '/')<br>
+ if (!strchr(name, '/'))<br>
snprintf(path, sizeof path, "%s/%s", MODULEDIR, name);<br>
else<br>
snprintf(path, sizeof path, "%s", name);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.2.1<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div><br></div>