<p>Thorsten Alteholz has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9202">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">use reasonable value if PATH_MAX is not defined<br><br>In case PATH_MAX is not defined, which happens for example on non Linux<br>systems like Hurd, use a reasonable value, like the one from Linux.<br><br>Change-Id: Ia884f4c96b4c4eaa1a1be256e3ccda0b4dec4099<br>---<br>M src/plugin.c<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/02/9202/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/plugin.c b/src/plugin.c</span><br><span>index 40de4f8..bffdc97 100644</span><br><span>--- a/src/plugin.c</span><br><span>+++ b/src/plugin.c</span><br><span>@@ -46,7 +46,12 @@</span><br><span> int osmo_plugin_load_all(const char *directory)</span><br><span> {</span><br><span>     unsigned int num = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+/* in case PATH_MAX is not defined, use the value from linux */</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef PATH_MAX</span><br><span>      char fname[PATH_MAX];</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+  char fname[4096];</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span>    DIR *dir;</span><br><span>    struct dirent *entry;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9202">change 9202</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/9202"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia884f4c96b4c4eaa1a1be256e3ccda0b4dec4099 </div>
<div style="display:none"> Gerrit-Change-Number: 9202 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Thorsten Alteholz <osmocom@alteholz.de> </div>