Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/daemon


Modified Files:
        ipc.c spawner.c 


Log Message:
Fix root login IPC bug

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/ipc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ipc.c       12 May 2004 19:24:16 -0000      1.3
+++ ipc.c       24 Jun 2004 00:57:11 -0000      1.4
@@ -62,8 +62,8 @@
                    e->minor, _display->client.pid);
       }
 
-      if (_display->client.uid && _display->client.gid 
-            && _display->client.homedir)
+      if ((_display->client.uid >= 0) && (_display->client.gid >= 0)
+            && (_display->client.homedir))
       {
          if (!(_display->auth_en) || entranced_auth_user_add(_display, (const char 
*)_display->client.homedir))
          {
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/spawner.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- spawner.c   20 May 2004 04:02:09 -0000      1.21
+++ spawner.c   24 Jun 2004 00:57:11 -0000      1.22
@@ -80,6 +80,8 @@
    d->status = NOT_RUNNING;
    d->auth_en = 1;
    d->auths = ecore_list_new();
+   d->client.uid = -1;
+   d->client.gid = -1;
    return d;
 }
 
@@ -191,8 +193,8 @@
    char entrance_cmd[PATH_MAX];
 
    d->client.pid = 0;
-   d->client.uid = 0;
-   d->client.gid = 0;
+   d->client.uid = -1;
+   d->client.gid = -1;
    if (d->client.homedir)
       free(d->client.homedir);
    d->client.homedir = NULL;




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to