invoke pgp correctly. Reference: /n/sources/patch/applied/marshal-p-fix Date: Thu Dec 22 00:58:49 CET 2005 --- /sys/src/cmd/upas/marshal/marshal.c Thu Dec 22 00:57:52 2005 +++ /sys/src/cmd/upas/marshal/marshal.c Thu Dec 22 00:57:47 2005 @@ -1125,6 +1125,7 @@ v = av = emalloc(sizeof(char*)*8); ac = 0; v[ac++] = "pgp"; + v[ac++] = "-fat"; /* operate as a filter, generate text */ if(pgpflag & PGPsign) v[ac++] = "-s"; if(pgpflag & PGPencrypt) @@ -1144,7 +1145,9 @@ dup(fd, 1); close(fd); - exec("/bin/upas/pgp", av); + /* add newline to avoid confusing pgp output with 822 headers */ + write(1, "\n", 1); + exec("/bin/pgp", av); fatal("execing: %r"); break; default: