components/krb5/patches/054-trailing-comments.patch
changeset 6599 1d033832c5e7
parent 5490 9bf0bc57423a
child 6978 14cbeb78966a
equal deleted inserted replaced
6598:97c29bc92758 6599:1d033832c5e7
     5 #
     5 #
     6 # MIT has said they have never supported comments after parameter assignments
     6 # MIT has said they have never supported comments after parameter assignments
     7 # so this is Solaris only for now.
     7 # so this is Solaris only for now.
     8 # Patch source: in-house
     8 # Patch source: in-house
     9 #
     9 #
    10 diff -ur krb5-1.13.2/src/lib/krb5/os/locate_kdc.c krb5-1.13.2.port-fix/src/lib/krb5/os/locate_kdc.c
    10 diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c
    11 --- krb5-1.13.2/src/lib/krb5/os/locate_kdc.c	2015-08-28 18:31:53.289596722 -0500
    11 --- a/src/lib/krb5/os/locate_kdc.c
    12 +++ krb5-1.13.2.port-fix/src/lib/krb5/os/locate_kdc.c	2015-08-28 18:30:51.201317543 -0500
    12 +++ b/src/lib/krb5/os/locate_kdc.c
    13 @@ -270,6 +270,9 @@
    13 @@ -270,6 +270,9 @@ locate_srv_conf_1(krb5_context context, const krb5_data *realm,
    14          if (port) {
    14          if (port) {
    15              unsigned long l;
    15              unsigned long l;
    16              char *endptr;
    16              char *endptr;
    17 +
    17 +
    18 +            cp = port + strcspn(port, " \t#");
    18 +            cp = port + strcspn(port, " \t#");