ports/emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c
Larry Rosenman 8c5cf0c48c emulators/tpm-emulator: fail to run in arm64 due to improper getopt(3) use
Add patch to fix it.

PR:		219352
Submitted by:	Phillip R. Jaenke <prj@rootwyrm.com>
Approved by:	maintainer timeout.
2017-06-03 21:56:25 +00:00

11 lines
279 B
C

--- tpmd/unix/tpmd.c.orig 2011-12-20 18:30:06 UTC
+++ tpmd/unix/tpmd.c
@@ -85,7 +85,7 @@ static void print_usage(char *name)
static void parse_options(int argc, char **argv)
{
- char c;
+ int c;
struct passwd *pwd;
struct group *grp;
opt_uid = getuid();