From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.rz.uni-karlsruhe.de (Debian-exim@smtp1.rz.uni-karlsruhe.de [129.13.185.217]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p1RJEkE3028440 for ; Sun, 27 Feb 2011 14:14:48 -0500 (EST) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.63 #1) id 1Ptm4l-0002Tp-UU; Sun, 27 Feb 2011 20:14:43 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1Ptm4l-0006dO-T2 for tech@mdocml.bsd.lv; Sun, 27 Feb 2011 20:14:39 +0100 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1Ptm4o-0000tG-Ix for tech@mdocml.bsd.lv; Sun, 27 Feb 2011 20:14:42 +0100 Received: from schwarze by usta.de with local (Exim 4.72) (envelope-from ) id 1Ptm4l-0006he-R1 for tech@mdocml.bsd.lv; Sun, 27 Feb 2011 20:14:39 +0100 Date: Sun, 27 Feb 2011 20:14:39 +0100 From: Ingo Schwarze To: tech@mdocml.bsd.lv Subject: remove private information from user documents Message-ID: <20110227191439.GE12815@iris.usta.de> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi, Theo noticed that mandoc(1) includes information about itself into PostScript and PDF documents it creates. I don't like that. Basically, what software i'm running, and which version, is private information about myself. I don't expect such information to end up in documents i'm creating. Often, having that information included won't matter, but in some situations, it may be a bad idea. Besides, leaking private information is never nice, least so when the user is not aware what's happening and has no obvious way to switch it off; but i'd go as far as to say that it should not only be off by default, but that even an option to enable it would be on the verge of bloatware. If i want such information, along with my birthday, phone number and address, sent out to the world, i can always choose to run Microsoft Word. ;-) OK? Yours, Ingo Index: term_ps.c =================================================================== RCS file: /cvs/src/usr.bin/mandoc/term_ps.c,v retrieving revision 1.14 diff -u -p -r1.14 term_ps.c --- term_ps.c 31 Jan 2011 02:36:55 -0000 1.14 +++ term_ps.c 27 Feb 2011 19:01:18 -0000 @@ -788,7 +788,6 @@ ps_begin(struct termp *p) if (TERMTYPE_PS == p->type) { ps_printf(p, "%%!PS-Adobe-3.0\n"); - ps_printf(p, "%%%%Creator: mandoc-%s\n", VERSION); ps_printf(p, "%%%%CreationDate: %s", ctime(&t)); ps_printf(p, "%%%%DocumentData: Clean7Bit\n"); ps_printf(p, "%%%%Orientation: Portrait\n"); @@ -806,11 +805,6 @@ ps_begin(struct termp *p) ps_printf(p, "\n%%%%EndComments\n"); } else { ps_printf(p, "%%PDF-1.1\n"); - pdf_obj(p, 1); - ps_printf(p, "<<\n"); - ps_printf(p, "/Creator mandoc-%s\n", VERSION); - ps_printf(p, ">>\n"); - ps_printf(p, "endobj\n"); for (i = 0; i < (int)TERMFONT__MAX; i++) { pdf_obj(p, (size_t)i + 3); -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv