summaryrefslogtreecommitdiff
path: root/user
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle the weird case where getpwnam() returns NULL but errno is zero.trawick2001-07-021-0/+4
| | | | | | | | | This led to a segfault on apache.org when apache did a home directory lookup on an invalid user name. This isn't cool on the part of libc, but oh well. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61853 13f79535-47bb-0310-9956-ffa450edef68
* Missed a return value, thanks to gstein for the catch.wrowe2001-06-101-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61753 13f79535-47bb-0310-9956-ffa450edef68
* Better make the path canonical to unixish expectations.wrowe2001-06-101-6/+8
| | | | | | | This is verified to allow mod_userdir do it's thing on win32. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61749 13f79535-47bb-0310-9956-ffa450edef68
* I hate obscure order of operations.wrowe2001-06-101-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61748 13f79535-47bb-0310-9956-ffa450edef68
* Solve two flukes. First, I mis-constructed the sid authority. Second,wrowe2001-06-101-10/+15
| | | | | | | | if the LookupAccountName call has to resolve the domain (e.g., lookup user joe), it must have a domain buffer or we segfault. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61747 13f79535-47bb-0310-9956-ffa450edef68
* apr_get_home_directory is herewrowe2001-06-101-2/+123
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61744 13f79535-47bb-0310-9956-ffa450edef68
* Whoops, APR_BADARG is bogus [my doing.] Still return APR_EINVAL sincewrowe2001-06-062-9/+9
| | | | | | | | we don't know where the id came from, and if it's safe to pass to the kernel. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61722 13f79535-47bb-0310-9956-ffa450edef68
* More /w4 emitswrowe2001-04-121-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61510 13f79535-47bb-0310-9956-ffa450edef68
* Keep userinfo.c compiling on OS/390, where there is no pw_passwd fieldtrawick2001-03-081-0/+4
| | | | | | | | in struct passwd. The affected function is due to be replaced soon anyway. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61351 13f79535-47bb-0310-9956-ffa450edef68
* Allow a way to get the password from the system password database.rbb2001-03-081-0/+14
| | | | | | | | Non unix platforms will likely need a similar function. Submitted by: John Barbee <jbarbee@covalent.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61347 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andwrowe2001-02-251-3/+0
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Remove some duplicate calls to strchr(), and remove a typo as a side-effectjwoolley2001-02-221-6/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61281 13f79535-47bb-0310-9956-ffa450edef68
* Missing the apr_pool_t arg required for more complex queries of uid/gidwrowe2001-02-212-4/+32
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61278 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_get_userid() as a companion to apr_get_username().jwoolley2001-02-212-5/+40
| | | | | | | PR: Needed to fix Apache PR7271. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61275 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-164-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* Again, BeOS doesn't really have the notion of groups and users at the moment,dreid2001-02-131-0/+3
| | | | | | | so we'll just ignore this until it does. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61231 13f79535-47bb-0310-9956-ffa450edef68
* Moving a small OS2'ism into APR, it's pw_dir excludes the username.wrowe2001-01-281-0/+5
| | | | | | | | Return the expected result. Also noted the headers/os2errno changes from early this morning. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61164 13f79535-47bb-0310-9956-ffa450edef68
* User and Group goodness. If anyone objects to the non-typesafe unixwrowe2001-01-282-2/+23
| | | | | | | implementation of apr_compare_users/groups - feel free to add saftey. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61162 13f79535-47bb-0310-9956-ffa450edef68
* Get Unix building again.rbb2001-01-281-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61141 13f79535-47bb-0310-9956-ffa450edef68
* Some win32 user and group handling functionswrowe2001-01-282-0/+162
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61140 13f79535-47bb-0310-9956-ffa450edef68
* Add groupinfo.c for apr_get_groupname... win32 commit to follow in awrowe2001-01-282-1/+83
| | | | | | | | | | | | | | | moment. Note: I have no clue if getgrgid_r is implemented by anyone anywhere, it was a best guess at a threadsafe flavor. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61138 13f79535-47bb-0310-9956-ffa450edef68
* Get the new userinfo stuff to compile cleanly.rbb2001-01-281-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61137 13f79535-47bb-0310-9956-ffa450edef68
* Added apr_get_username to the former homedir.c (now userinfo.c).wrowe2001-01-283-93/+20
| | | | | | | | | HAVE_GETPWNAM_R is likely the wrong test for HAVE_GETPWUID_R, but I have no clue if that featuretest is already compiled. Unix folk, please adjust accordingly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61136 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.gstein2001-01-092-23/+8
| | | | | | | | | | | | | | | | | To simplify the task, I also shifted the Makefiles to include a rules.mk (based on APRUTIL's with a few tweaks). Still needs some work to remove the INCLUDES setup in all the Makefiles (these can be shared). buildconf now does more work (and generates some output) aclocal.m4 is based on a number of M4 files, rather than standalone apr/test/ has been updated but is probably broken in a few ways. objs/ is now gone. we link directly from the .lo files. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
* Fix a warning.ben2000-12-312-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60995 13f79535-47bb-0310-9956-ffa450edef68
* Compensate for missing getpwnam_r on FreeBSD 3.2.ben2000-12-302-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60992 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_private.h.in from the include directory to the arch/unixrbb2000-12-081-1/+2
| | | | | | | | | | | directory. This removes all temptation to include apr_private.h from outside of APR, because it just isn't available. This also highlighted a bunch of holes in our header file setup. Basically, just directories that were never migrated to the curret setup. Submitted by: Will Rowe and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. Dependenciestrawick2000-11-151-22/+2
| | | | | | | | | | | | | | | | | will not be checked into CVS, as they are added to Makefile when the user runs "make depend." The exact mechanism for building dependencies is moved to a script called mkdep.sh in the APR helpers directory. Folks are free to make the mechanism more general (i.e., work on systems without gcc -MM), but for now it still requires gcc -MM. The patch also removes some commented out variable definitions and rules. BeOS- and OS/2-specific makefiles have not been updated. I'll post a patch to those or go ahead and commit them later, but David and Brian will get to test them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60727 13f79535-47bb-0310-9956-ffa450edef68
* add apr_get_home_directory(), teach mod_userdir to use thattrawick2000-11-134-0/+220
instead of calling getpwnam[_r] directly, back out mod_userdir's config check for getpwnam_r git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60709 13f79535-47bb-0310-9956-ffa450edef68