diff options
author | pav <pav@FreeBSD.org> | 2009-03-25 01:33:41 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2009-03-25 01:33:41 +0800 |
commit | 5ed60b6b1ac18a94873c1a85581b9ef55d83405d (patch) | |
tree | 83954fcdedfc34588cce016ad02811e9e613bde2 /security/openssh-portable/files | |
parent | dfd2a29c7414175bf14c7970cd76081a9bc16a45 (diff) | |
download | freebsd-ports-gnome-5ed60b6b1ac18a94873c1a85581b9ef55d83405d.tar.gz freebsd-ports-gnome-5ed60b6b1ac18a94873c1a85581b9ef55d83405d.tar.zst freebsd-ports-gnome-5ed60b6b1ac18a94873c1a85581b9ef55d83405d.zip |
- Add vendor patch for lpk patch that fixes runtime on amd64
PR: ports/129092
Submitted by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
Approved by: maintainer timeout (mnag; 4 months)
Diffstat (limited to 'security/openssh-portable/files')
-rw-r--r-- | security/openssh-portable/files/openssh-lpk-5.0p1-64bit.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/security/openssh-portable/files/openssh-lpk-5.0p1-64bit.patch b/security/openssh-portable/files/openssh-lpk-5.0p1-64bit.patch new file mode 100644 index 000000000000..2e95d951885b --- /dev/null +++ b/security/openssh-portable/files/openssh-lpk-5.0p1-64bit.patch @@ -0,0 +1,44 @@ +diff -Nuar --exclude '*.rej' servconf.c.orig servconf.c +--- servconf.c.orig 2008-08-23 15:02:47.000000000 -0700 ++++ servconf.c 2008-08-23 15:04:21.000000000 -0700 +@@ -701,6 +701,7 @@ + int cmdline = 0, *intptr, value, n; + SyslogFacility *log_facility_ptr; + LogLevel *log_level_ptr; ++ unsigned long lvalue, *longptr; + ServerOpCodes opcode; + u_short port; + u_int i, flags = 0; +@@ -715,6 +716,7 @@ + if (!arg || !*arg || *arg == '#') + return 0; + intptr = NULL; ++ longptr = NULL; + charptr = NULL; + opcode = parse_token(arg, filename, linenum, &flags); + +@@ -1449,11 +1451,20 @@ + *intptr = value; + break; + case sBindTimeout: +- intptr = (int *) &options->lpk.b_timeout.tv_sec; +- goto parse_int; ++ longptr = (unsigned long *) &options->lpk.b_timeout.tv_sec; ++parse_ulong: ++ arg = strdelim(&cp); ++ if (!arg || *arg == '\0') ++ fatal("%s line %d: missing integer value.", ++ filename, linenum); ++ lvalue = atol(arg); ++ if (*activep && *longptr == -1) ++ *longptr = lvalue; ++ break; ++ + case sSearchTimeout: +- intptr = (int *) &options->lpk.s_timeout.tv_sec; +- goto parse_int; ++ longptr = (unsigned long *) &options->lpk.s_timeout.tv_sec; ++ goto parse_ulong; + break; + case sLdapConf: + arg = cp; |