Yup, it is another of the "magic" tricks NEW to Leopard client and server. TMPDIR (See also:/var/folders) is generated randomly in LEOpard, ONLY when a user does a GUI login !!! Wanna see a TON-O-CRAP ? do,sudo du -sh /var/folders/# ################## # ...the decisions which led to this (change) revolved around security. There were a number of attacks which used prior knowledge of another processes' temporary directory location to race it to the creation of temporary files. I think the benefits of "randomizing" it and putting it under the control of launchd far outweigh any legitimate uses of it (and processes which need to share files across user instances ought to create specialized subdirectories of /tmp for this purpose anyway)... # ################## # Wanna see how much crap just Safari has stored ?du -ch {~/Library/Caches/,`/usr/bin/getconf DARWIN_USER_CACHE_DIR`}com.apple.Safarior/usr/bin/getconf DARWIN_USER_TEMP_DIRand/usr/bin/getconf DARWIN_USER_CACHE_DIRWanna CLEAN them ?rm -rf `/usr/bin/getconf DARWIN_USER_CACHE_DIR`andrm -rf `/usr/bin/getconf DARWIN_USER_TEMP_DIR`Cool eh ? Maybe we can find an application like LCC to do this for us ???
|
© Gary Sullivan
Maintainer of this page. |