My bash shell requires a temp file. Suppose filename conflict is not an issue, can I say mktemp
is not as good as manually touch a temp file after umask 066
?
My assumption is: mktemp is a system function, compared to manually touch a file, it still takes a little bit more resource.
I've read something about ln -s etc/passwd
attack, but it looks like a story decades ago when passwords were not shadowed.
Please correct me if my understanding is wrong.