tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: tech@mdocml.bsd.lv
Subject: remove private information from user documents
Date: Sun, 27 Feb 2011 20:14:39 +0100	[thread overview]
Message-ID: <20110227191439.GE12815@iris.usta.de> (raw)

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

             reply	other threads:[~2011-02-27 19:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27 19:14 Ingo Schwarze [this message]
2011-02-27 19:35 ` Joerg Sonnenberger
2011-02-27 22:40   ` Ingo Schwarze
2011-03-06 23:59     ` Kristaps Dzonsons
2011-02-28  0:30 ` Anthony J. Bentley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110227191439.GE12815@iris.usta.de \
    --to=schwarze@usta.de \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).