diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-28 01:37:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-28 01:37:12 +0000 |
commit | 9f33327f90df6b7a97a7a944f87cc6abbb74102d (patch) | |
tree | 4d3d031ec51fb44293932eae836fedd31b3ed244 | |
parent | deb0541a9d65b5e9fd3c55f596a74475936e9a32 (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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"); |