[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kdm/backend
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2005-02-20 8:15:55
Message-ID: 20050220081555.8E3E31BADC () office ! kde ! org
[Download RAW message or body]

CVS commit by ossi: 

consistency is king


  M +1 -1      dm.c   1.117
  M +2 -2      sessreg.c   2.5
  M +1 -1      util.c   1.46


--- kdebase/kdm/backend/dm.c  #1.116:1.117
@@ -401,5 +401,5 @@ CheckUtmp( void )
 #endif
 #ifdef BSD_UTMP
-                                if (!*ut->ut_name) {
+                                if (!*ut->ut_user) {
 #else
                                 if (ut->ut_type != USER_PROCESS) {

--- kdebase/kdm/backend/sessreg.c  #2.4:2.5
@@ -125,5 +125,5 @@ sessreg( struct display *d, int pid, con
 
         if (pid) {
-                strncpy( ut_ent.ut_name, user, sizeof(ut_ent.ut_name) );
+                strncpy( ut_ent.ut_user, user, sizeof(ut_ent.ut_user) );
 #ifndef BSD_UTMP
                 ut_ent.ut_pid = pid;
@@ -232,5 +232,5 @@ sessreg( struct display *d, int pid, con
 #  endif
                                         goto found;
-                        if (freeslot < 0 && *entry.ut_name == '\0')
+                        if (freeslot < 0 && *entry.ut_user == '\0')
                                 freeslot = slot;
                         slot++;

--- kdebase/kdm/backend/util.c  #1.45:1.46
@@ -560,5 +560,5 @@ ListSessions( int flags, struct display 
                 return;
         while (Reader( fd, ut, sizeof(ut[0]) ) == sizeof(ut[0])) {
-                if (*ut->ut_name) {     /* no idea how to list passive TTYs on BSD */
+                if (*ut->ut_user) {     /* no idea how to list passive TTYs on BSD */
 #else
         SETUTENT();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic