diff -Naur openssh.orig/Portfile openssh.new/Portfile
old
|
new
|
|
4 | 4 | |
5 | 5 | name openssh |
6 | 6 | version 4.7p1 |
7 | | revision 1 |
| 7 | revision 2 |
8 | 8 | categories net |
9 | 9 | maintainers nomaintainer |
10 | 10 | description OpenSSH secure login server |
… |
… |
|
41 | 41 | ftp://ftp.tux.org/bsd/openbsd/OpenSSH/portable/ |
42 | 42 | depends_lib port:openssl port:zlib |
43 | 43 | |
| 44 | patchfiles-append percent_expand_fix.patch |
| 45 | patch.pre_args -p1 |
| 46 | |
44 | 47 | # Specified -fno-builtin because GCC 3.3 has log() as a builtin |
45 | 48 | # (from math.h) while OpenSSH has its own log() function |
46 | 49 | # -- from fink. |
diff -Naur openssh.orig/files/percent_expand_fix.patch openssh.new/files/percent_expand_fix.patch
old
|
new
|
|
| 1 | diff -Naur openssh-4.7p1-orig/ssh.c openssh-4.7p1-new/ssh.c |
| 2 | --- openssh-4.7p1-orig/ssh.c 2007-08-08 06:32:41.000000000 +0200 |
| 3 | +++ openssh-4.7p1-new/ssh.c 2007-10-30 09:14:44.000000000 +0100 |
| 4 | @@ -1242,6 +1242,7 @@ |
| 5 | #endif /* SMARTCARD */ |
| 6 | if ((pw = getpwuid(original_real_uid)) == NULL) |
| 7 | fatal("load_public_identity_files: getpwuid failed"); |
| 8 | + pw = pwcopy(pw); |
| 9 | if (gethostname(thishost, sizeof(thishost)) == -1) |
| 10 | fatal("load_public_identity_files: gethostname: %s", |
| 11 | strerror(errno)); |