bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile error in current CVS, src/server.c:5500


From: Brian Murphy
Subject: Re: Compile error in current CVS, src/server.c:5500
Date: Mon, 21 Jul 2003 20:05:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529

Hi,

Here is the fix. I didn't like the use of a fake error EACCES
in this situation, I prefer 0. EACCES refers to file access
failures not authentication / login failures as far as I'm aware.

/Brian
ChangeLog: 
* server.c: string literal fix complying with C99. Also fix an incorrect
use of the string error return to the cvs client.

Index: src/server.c
===================================================================
RCS file: /cvs/ccvs/src/server.c,v
retrieving revision 1.301
diff -u -r1.301 server.c
--- src/server.c        20 Jul 2003 16:38:55 -0000      1.301
+++ src/server.c        21 Jul 2003 17:53:45 -0000
@@ -5497,8 +5497,8 @@
 
     if (pam_end(pamh,retval) != PAM_SUCCESS)
     {
-       printf("E Fatal error, aborting.\n
-               pam failed to release authenticator\n");
+       printf("E Fatal error, aborting.\n\
+error 0 pam failed to release authenticator\n");
        error_exit ();
     }
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]