Thomas Anders wrote: > Jan Safranek wrote: >> 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... > > You're right. I've realized it myself shortly after hitting 'Send'. > The "--with-cflags=-D..." approach doesn't work for settings that are > unconditionally defined in net-snmp-config.h, unfortunately. I agree there > should be a way other than hacking net-snmp-config.h, though.
I checked in to trunk (rev. 17121) new ./configure with --with-temp-file-pattern option, which allows users to override the default /tmp/snmpdXXXXXX. Would anyone mind if I put it also to 5.4.x branch? 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
