apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r376409 - /apr/apr/trunk/test/testuser.c
Date Thu, 09 Feb 2006 19:57:24 GMT
Author: wrowe
Date: Thu Feb  9 11:57:23 2006
New Revision: 376409

URL: http://svn.apache.org/viewcvs?rev=376409&view=rev
Log:

  apr_uid_t and apr_gid_t ARE NOT transparent types, no matter
  how much our unix users wish they were.

  We need some APR constant if you would like to treat them this
  way, e.g. a symbols APR_UID_GID_NUMERIC flag or similar.

  Thoughts?

Modified:
    apr/apr/trunk/test/testuser.c

Modified: apr/apr/trunk/test/testuser.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/test/testuser.c?rev=376409&r1=376408&r2=376409&view=diff
==============================================================================
--- apr/apr/trunk/test/testuser.c (original)
+++ apr/apr/trunk/test/testuser.c Thu Feb  9 11:57:23 2006
@@ -94,6 +94,8 @@
                        apr_gid_compare(gid, retreived_gid));
 }
 
+#ifdef APR_UID_GID_NUMERIC
+
 static void fail_userinfo(abts_case *tc, void *data)
 {
     apr_uid_t uid;
@@ -138,6 +140,8 @@
                 rv != APR_SUCCESS || tmp != NULL);
 }
 
+#endif
+
 #else
 static void users_not_impl(abts_case *tc, void *data)
 {
@@ -155,7 +159,9 @@
     abts_run_test(suite, uid_current, NULL);
     abts_run_test(suite, username, NULL);
     abts_run_test(suite, groupname, NULL);
+#ifdef APR_UID_GID_NUMERIC
     abts_run_test(suite, fail_userinfo, NULL);
+#endif
 #endif
 
     return suite;



Mime
View raw message