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.
https://euvd.enisa.europa.eu/vulnerability/EUVD-1999-1083
http://www.phreak.org/archives/security/8lgm/8lgm.lpr
http://www.aenigma.net/resources/maillist/bugtraq/1994/0091.htm