Hello,


on my GNU/Hurd system, running make on rsyslog-8.2108.0 fails, after a
successful configure, because of undefined PATH_MAX and MAXPATHLEN.

GNU/Hurd doesn't use such macros, by design choice, to avoid imposing
arbitrary limits. Also note that POSIX allows those macros, but doesn't
require them.

Additionally, many common uses of PATH_MAX and similar are incorrect:
for example, the Linux kernel does not really enforce a limit on path
lengths, but only on paths to be passed to certain system calls; see
https://insanecoding.blogspot.com/2007/11/pathmax-simply-isnt.html for
example.


Perhaps rsyslog could detect missing PATH_MAX at configure time, but
that's not really a solution; I think the only option is to avoid its
use entirely, resorting to dinamically allocated buffers instead.

I could try that, as there are few instances to replace in rsyslog tree.



Let me know,

Andrea Monaco
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to