summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-28 01:37:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-28 01:37:12 +0000
commit9f33327f90df6b7a97a7a944f87cc6abbb74102d (patch)
tree4d3d031ec51fb44293932eae836fedd31b3ed244
parentdeb0541a9d65b5e9fd3c55f596a74475936e9a32 (diff)
downloadmandoc-9f33327f90df6b7a97a7a944f87cc6abbb74102d.tar.gz
I just noticed that -Tps writes "%%CreationDate:" headers.
That's an unwelcome leak of potentially private information. Kill it with fire.
-rw-r--r--term_ps.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/term_ps.c b/term_ps.c
index 1ce03e19..0dc5b999 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -25,7 +25,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "mandoc.h"
@@ -852,7 +851,6 @@ ps_end(struct termp *p)
static void
ps_begin(struct termp *p)
{
- time_t t;
int i;
/*
@@ -893,11 +891,8 @@ ps_begin(struct termp *p)
* stuff gets printed to the screen, so make sure we're sane.
*/
- t = time(NULL);
-
if (TERMTYPE_PS == p->type) {
ps_printf(p, "%%!PS-Adobe-3.0\n");
- ps_printf(p, "%%%%CreationDate: %s", ctime(&t));
ps_printf(p, "%%%%DocumentData: Clean7Bit\n");
ps_printf(p, "%%%%Orientation: Portrait\n");
ps_printf(p, "%%%%Pages: (atend)\n");