Thomas Anders wrote:
> Jan Safranek schrieb:
>> Is there any way, how to modify NETSNMP_TEMP_FILE_PATTERN without 
>> patching net-snmp-config.h.in? Like some well-hidden argument to 
>> ./configure or so? I  don't like snmptrapd putting files into /tmp 
>> (resp. SELinux does not like it, see 
>> http://danwalsh.livejournal.com/11467.html).
> 
> The generic approach through configure is something like:
> 
>   ./configure --with-cflags=-DNETSNMP_TEMP_FILE_PATTERN=xxx
> 
> Not sexy, but powerful. :-)

I've already tried this, but snmptrapd still creates files in /tmp. And 
if I patch the net-snmp-config.h.in manually, it creates it wherever I want.

There should be some #ifndef NETSNMP_TEMP_FILE_PATTERN in the .h file to 
make it working...

Jan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to