Drop system("rm -f") to clean /tmp, its a fresh mounted tmpfs

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka committed 2008-02-16 18:07:57 -02:00
1 parent ef3071b957
commit bbe281db55
5 files changed
+5 -2

No files matched your search

+2
View File
@@ -164,7 +164,9 @@ int main()
/*
* Misc setup
*/
/* not really needed, /tmp is a fresh mounted tmpfs */
system("/bin/rm -rf /tmp/* /tmp/.* 2>/dev/null");
unlink("/var/run/.clean");
unlink("/var/lock/.clean");
umask(0);