gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r902 - GNUnet/src/util/win


From: durner
Subject: [GNUnet-SVN] r902 - GNUnet/src/util/win
Date: Sun, 12 Jun 2005 07:28:58 -0700 (PDT)

Author: durner
Date: 2005-06-12 07:28:55 -0700 (Sun, 12 Jun 2005)
New Revision: 902

Modified:
   GNUnet/src/util/win/win.cc
Log:
fix

Modified: GNUnet/src/util/win/win.cc
===================================================================
--- GNUnet/src/util/win/win.cc  2005-06-12 11:48:55 UTC (rev 901)
+++ GNUnet/src/util/win/win.cc  2005-06-12 14:28:55 UTC (rev 902)
@@ -222,7 +222,7 @@
 
   hService = GNCreateService(hManager, "GNUnet", "GNUnet", 0,
     SERVICE_WIN32_OWN_PROCESS, SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, szEXE,
-    NULL, NULL, NULL, user, NULL);
+    NULL, NULL, NULL, user, username);
   
   if (user)
        free(user);
@@ -454,6 +454,7 @@
        
        memset(&ui, 0, sizeof(ui));
        ui.usri1_name = wszName;
+       ui.usri1_password = wszName; /* account is locked anyway */
        ui.usri1_priv = USER_PRIV_USER;
        ui.usri1_comment = wszDesc;
        ui.usri1_flags = UF_SCRIPT;
@@ -463,8 +464,7 @@
        if (nStatus != NERR_Success && nStatus != NERR_UserExists)
                return 2;
        
-  ui2.usri1008_flags = UF_PASSWD_NOTREQD | UF_PASSWD_CANT_CHANGE |
-       UF_DONT_EXPIRE_PASSWD;
+  ui2.usri1008_flags = UF_PASSWD_CANT_CHANGE | UF_DONT_EXPIRE_PASSWD;
   GNNetUserSetInfo(NULL, wszName, 1008, (LPBYTE)&ui2, NULL);
        
        if (_OpenPolicy(NULL, POLICY_ALL_ACCESS, &hPolicy) !=





reply via email to

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