gsasl-commit
[Top][All Lists]
Advanced

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

CVS gsasl/src


From: gsasl-commit
Subject: CVS gsasl/src
Date: Wed, 18 Jan 2006 12:03:36 +0100

Update of /home/cvs/gsasl/src
In directory dopio:/tmp/cvs-serv11658

Modified Files:
        callbacks.c 
Log Message:
Protect getpwuid, for mingw32.


--- /home/cvs/gsasl/src/callbacks.c     2005/07/16 20:20:39     1.40
+++ /home/cvs/gsasl/src/callbacks.c     2006/01/18 11:02:36     1.41
@@ -1,5 +1,5 @@
 /* callbacks.c --- Implementation of gsasl callbacks.
- * Copyright (C) 2002, 2003, 2004, 2005  Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005, 2006  Simon Josefsson
  *
  * This file is part of GNU SASL.
  *
@@ -101,6 +101,7 @@
     case GSASL_AUTHID:
       if (args_info.authentication_id_arg == NULL)
        {
+#if HAVE_GETPWUID
          uid_t uid;
          struct passwd *pw;
 
@@ -114,6 +115,7 @@
              args_info.authentication_id_arg = strdup (pw->pw_name);
            }
          else
+#endif
            args_info.authentication_id_arg =
              readutf8line ("Enter authentication ID: ");
        }





reply via email to

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