lpr on SunOS 4.1.1, BSD 4.3, A/UX 2.0.1, and other BSD-based operating systems allows local users to create or overwrite arbitrary files via a symlink attack that is triggered after invoking lpr 1000 times.
http://www.phreak.org/archives/security/8lgm/8lgm.lpr
http://www.aenigma.net/resources/maillist/bugtraq/1994/0091.htm