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

List:       kde-devel
Subject:    Checking for group "nogroup" for kdesud
From:       Albert Chin <kde-devel () thewrittenword ! com>
Date:       2002-01-05 11:46:59
[Download RAW message or body]

From kdebase-2.2.2/configure.in:
  dnl Check for the group "nogroup". Use -2 otherwise.
  AC_MSG_CHECKING(nogroup)
  AC_TRY_RUN([
      #include <grp.h>
      #include <sys/types.h>

      int main() 
      {
          struct group *grp = getgrnam("nogroup");
          if (grp) return 0;
          return 1;
      }
  ], nogroup=nogroup, nogroup=65534, nogroup=65534)
  AC_MSG_RESULT($nogroup)
  AC_SUBST(nogroup)

Neither Tru64 UNIX nor IRIX have the group "nogroup". However, they do
have the group "nobody":
  (Tru64 UNIX)
  nobody:*:65534:

  (IRIX)
  nobody:*:60001:

Can nobody be used as a fallback if nogroup is not found and, failing
that, defaulting to 65534?

-- 
albert chin (china@thewrittenword.com)
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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