aboutsummaryrefslogtreecommitdiffstats
path: root/comms/conserver-com/files/patch-conserver__group.c
blob: 0ae15d6109f96371565a49e41111f8c971d5547f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- ./conserver/group.c.orig    2009-09-26 05:58:05.000000000 -0400
+++ ./conserver/group.c 2013-02-15 18:34:20.000000000 -0500
@@ -72,6 +72,7 @@
 #include <master.h>
 #include <main.h>
 #include <version.h>
+#include <stdio.h>
 
 #if HAVE_PAM
 #include <security/pam_appl.h>
@@ -1930,7 +1931,7 @@
        FileWrite(pCL->fd, FLAGFALSE, sendtok.value, sendtok.length);
        FileSetQuoteIAC(pCL->fd, FLAGTRUE);
        pCL->iState = S_NORMAL;
-       gss_release_buffer(NULL, &sendtok);
+       gss_release_buffer(&stmin, &sendtok);
        BuildString((char *)0, pCL->username);
        BuildString((char *)0, pCL->acid);
        stmaj = gss_display_name(&stmin, user, &dbuf, NULL);
@@ -1940,7 +1941,7 @@
        BuildStringChar('@', pCL->acid);
        BuildString(pCL->peername->string, pCL->acid);
        gss_release_name(&stmin, &user);
-       gss_release_buffer(NULL, &dbuf);
+       gss_release_buffer(&stmin, &dbuf);
        ret = 1;
        break;
    case GSS_S_CREDENTIALS_EXPIRED:
@@ -3940,12 +3941,10 @@
                          "failed]\r\n", -1);
                    continue;
                }
-               if (TAB3 == (TABDLY & sbuf.c_oflag)) {
-                   sbuf.c_oflag &= ~TABDLY;
-                   sbuf.c_oflag |= TAB0;
+               if (sbuf.c_oflag & OXTABS) {
+                   sbuf.c_oflag &= ~OXTABS;
                } else {
-                   sbuf.c_oflag &= ~TABDLY;
-                   sbuf.c_oflag |= TAB3;
+                   sbuf.c_oflag |= OXTABS;
                }
                if (-1 ==
                    tcsetattr(FileFDNum