Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Insecure temp files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Insecure temp files
Authored by: TrumpetPower! on Jan 24, '06 07:52:30AM

The .vimrc addition always uses the same temp file, and just leaves it there afterwards. This is very dangerous on a great many levels, even in a single-user environment. In a multi-user environment, it's guaranteed to blow up spectacularly.

Ideally, you want to run aspell as a pipe--have it accept text on stdin and write the corrected text to stdout. If you can't do that, you should write a wrapper script that does that and makes use of mktemp(1) for the temporary files.

Cheers,

b&



[ Reply to This | # ]