~ubuntu-branches/ubuntu/karmic/likewise-open/karmic

« back to all changes in this revision

Viewing changes to centutils/libcentutils/ctuser.c

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-08-27 08:56:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080827085620-5q0f58b9qtog9myq
Tags: 4.1.0.2956-0ubuntu1
* missing-likewise-logo.diff: removed
* fixed copyright notice
* updated Standards-Version to 3.8.0
* removed path from command in prerm
* removed stop in S runlevel

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
#endif
239
239
        if(ent == NULL)
240
240
            break;
241
 
        //HP-UX uses console when someone is graphically logged in
242
 
        if(ent->ut_line[0] == ':' || ent->ut_id[0] == ':' ||
243
 
                !strcmp(ent->ut_line, "console"))
 
241
        if(ent->ut_type != USER_PROCESS)
 
242
            continue;
 
243
        if(
 
244
            /* Linux uses this */
 
245
            ent->ut_line[0] == ':' || ent->ut_id[0] == ':' ||
 
246
            /* AIX uses this */
 
247
            (!strncmp(ent->ut_line, "lft", 3) && !strcmp(ent->ut_id, "dt")) ||
 
248
            /* Solaris and HP-UX use this */
 
249
            (!strcmp(ent->ut_line, "console") && !strcmp(ent->ut_id, "dt")))
244
250
        {
245
251
            *inX = TRUE;
246
252
            goto cleanup;