Hi, On 29.11.2011 16:05, Anton Zinoviev wrote: > On Tue, Nov 29, 2011 at 03:50:10PM +0100, Michael Biebl wrote: >> On 29.11.2011 14:21, Debian Bug Tracking System wrote: >>> >>> * setupcon: add /run and /dev to /lib/init/rw as alternative directories >>> for temporary files. >> >> >> /dev for temporary files? I hope this is a typo. > > No, it's not a typo but /run is used with precedence. The exact code is this: > > TMPFILE=`mktemp /tmp/tmpkbd.XXXXXX 2>/dev/null` \ > || TMPFILE=`mktemp /run/tmpkbd.XXXXXX 2>/dev/null` \ > || TMPFILE=`mktemp /dev/.tmpkbd.XXXXXX 2>/dev/null` \ > || TMPFILE=`mktemp /lib/init/rw/tmpkbd.XXXXXX 2>/dev/null` \ > || TMPFILE=`mktemp 2>/dev/null` > > The reason for this is I want the code to be working on any Unix-like > system regardless of the distribution, version, kernel (Linux or > FreeBSD) or the stage at the boot process.
/run was created that we don't have the misuse of /dev anymore and we have a location that is writable during the runtime of the system. Our kbsd ports afaik do support /run, all other (major) distros support /run, too. It will even be in the next FHS. So please just rely on it and use it. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature