William A. Rowe Jr
c94820f3a5
We obviously have no idea if this code is right. We can't close unopened
...
files.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95981 13f79535-47bb-0310-9956-ffa450edef68
2002-07-08 20:25:28 +00:00
Justin Erenkrantz
7e0e99f40b
Remove unused variable 'str'.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95945 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 22:31:05 +00:00
Justin Erenkrantz
8474c2fac5
Use the apr_file_copy function rather than doing a system call to copy
...
the file.
Submitted by: Thom May <thom@planetarytramp.net >
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95944 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 22:19:13 +00:00
Justin Erenkrantz
1977fb4db5
found wasn't getting incremented when we update an exisiting record, thus
...
an additional new record was getting created.
Submitted by: Thom May <thom@planetarytramp.net >
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95943 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 22:15:39 +00:00
Ryan Bloom
6f5f68b58f
htpasswd needs to add a newline at the end of each record.
...
PR: 10422
Submitted by: Thom May [thom@planetarytramp.net ]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95939 13f79535-47bb-0310-9956-ffa450edef68
2002-07-02 19:48:38 +00:00
Cliff Woolley
8011872d58
Grrrr. Fix the htpasswd -c -n logic bug *the right way* this time. :(
...
PR: 9989
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95806 13f79535-47bb-0310-9956-ffa450edef68
2002-06-19 17:31:19 +00:00
Cliff Woolley
b04c69cff0
* clear up a warning that NOFILE was redefined on HP/UX.
...
* fix a logic bug ... a binary and that should have been a binary or.
(that one was just reporting a commandline args error, noncritical)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95753 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 02:58:36 +00:00
Roy T. Fielding
be3d2dc89b
squash warnings
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95744 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 00:33:26 +00:00
Cliff Woolley
770c87441e
Get this to work on win32 :(
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95723 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 14:51:17 +00:00
Ryan Bloom
0fbe806f40
Finish the htpasswd port to APR. This brings the file checking code to
...
APR.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95713 13f79535-47bb-0310-9956-ffa450edef68
2002-06-16 15:52:15 +00:00
Ryan Bloom
9149dd6fe1
First pass at cleaning up htpasswd. This removes the tmpnam call in
...
favor of apr_file_mktemp. This also APR-izes most of the code. The
file access code is still not using APR, but that will be fixed next.
I also re-organized some of the code to make it a little cleaner, and
to use functions where I could.
PR: 7764
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95712 13f79535-47bb-0310-9956-ffa450edef68
2002-06-16 15:14:41 +00:00
William A. Rowe Jr
89267e317c
Prepare for Thom's real patch... this is a detabify only
...
[passes cvs diff -w with no changes.]
Submitted by: Thom May <thom@planetarytramp.net >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95143 13f79535-47bb-0310-9956-ffa450edef68
2002-05-16 19:57:11 +00:00
Jeff Trawick
0f0550b08c
avoid colliding with getline() as defined by glibc
...
(it breaks if you need to turn on _GNU_SOURCE)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95035 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 18:20:29 +00:00
William A. Rowe Jr
01ba81a1f4
Correct const'ness of argv in all support apps, and use the new
...
apr_app_initialize over apr_initialize for win32, and other platforms
that may wish to tweak 'apr-ized' application support (e.g. Netware?)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94633 13f79535-47bb-0310-9956-ffa450edef68
2002-04-13 19:35:18 +00:00
Roy T. Fielding
845cbfd508
Update our copyright for this year.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
2002-03-13 20:48:07 +00:00
Bradley Nicholes
00053faa90
Updates to allow the utilities to run on NetWare
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92919 13f79535-47bb-0310-9956-ffa450edef68
2002-01-18 23:28:20 +00:00
William A. Rowe Jr
9b3864b084
APR_FINFO_TYPE is all we really needed here.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89642 13f79535-47bb-0310-9956-ffa450edef68
2001-07-20 19:19:39 +00:00
William A. Rowe Jr
1adf783132
A pool is a REQUIRED ARGUMENT, never optional (NULL).
...
This is why Mladen observed that htpasswd was still broken.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89641 13f79535-47bb-0310-9956-ffa450edef68
2001-07-20 19:13:44 +00:00
David Reid
c200a5ea11
Use a better format type for sizeof. This stops a few compiler
...
warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88319 13f79535-47bb-0310-9956-ffa450edef68
2001-02-25 15:27:07 +00:00
Roy T. Fielding
381f88d56a
Update copyright to 2001
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
2001-02-16 04:26:53 +00:00
William A. Rowe Jr
ab06ea0b6f
Still lots to apr'ize here.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88095 13f79535-47bb-0310-9956-ffa450edef68
2001-02-11 21:00:04 +00:00
Doug MacEachern
88d3406f9a
renaming various functions for consistency sake
...
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
2001-02-08 07:45:33 +00:00
William A. Rowe Jr
cd1ef027c2
The changes required for the APR_FINFO_wanted argument to
...
apr_stat/lstat/getfileinfo. These are -NOT- optimal, they
are simply the required changes to get the server working.
The size of the patch is a warning about how we need to
really look at what we are trying to accomplish with all
of these stat/lstat calls.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
2001-01-20 21:42:23 +00:00
William A. Rowe Jr
59bbd68bec
The big change. This is part 3 of the apr-util symbols rename, please
...
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87731 13f79535-47bb-0310-9956-ffa450edef68
2001-01-19 07:04:36 +00:00
Ryan Bloom
00ec6af4a5
Cleanups so that the support programs build cleanly. The Win32 values
...
need to be sanity checked.
Submitted by: Cliff Woolley <cliffwoolley@yahoo.com >
Reviewed by: Ryan Bloom
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87506 13f79535-47bb-0310-9956-ffa450edef68
2000-12-22 00:02:52 +00:00
William A. Rowe Jr
c2239e78bd
All the supports now build on APR (+APRUTIL), no reliance on httpd.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87501 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 21:00:45 +00:00
William A. Rowe Jr
a459c026e1
This should build entirely with apr/aprutil support
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87499 13f79535-47bb-0310-9956-ffa450edef68
2000-12-21 20:32:33 +00:00
Jeff Trawick
351725e726
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87460 13f79535-47bb-0310-9956-ffa450edef68
2000-12-20 16:44:01 +00:00
Ryan Bloom
b5440c348a
Force all Apache functions to be linked into the executable, whether they
...
are used or not. This uses the same mechanism that is used for APR
and APR-util. This may not be the correct solution, but it works, and that
is what I really care about. This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes
the exports script a bit easier.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87424 13f79535-47bb-0310-9956-ffa450edef68
2000-12-19 17:05:48 +00:00
Jeff Trawick
5296cf7332
Get htpasswd.c to build on EBCDIC machines again.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87141 13f79535-47bb-0310-9956-ffa450edef68
2000-11-30 19:12:36 +00:00
Greg Stein
ead2dae94c
*) Compensate for recent changes in the APR headers. Specifically, some
...
files need to specifically include stdio.h, or a particular apr_*.h
header.
*) Adjust callers of apr_create_process() to deal with the extra "const"
*) Add "const" to args of ap_os_create_privileged_process()
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87080 13f79535-47bb-0310-9956-ffa450edef68
2000-11-26 04:47:43 +00:00
William A. Rowe Jr
a37d06254f
Fix compile break in Win32
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86611 13f79535-47bb-0310-9956-ffa450edef68
2000-10-16 13:50:40 +00:00
William A. Rowe Jr
7775df3222
Completed review for new tests:
...
APR_STATUS_IS_EACCES(s)
APR_STATUS_IS_EEXIST(s)
APR_STATUS_IS_ENAMETOOLONG(s)
APR_STATUS_IS_ENOENT(s)
Where the old EACCES et. al. still exist, we have a problem (not yet
using APR at all)
More to come...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86417 13f79535-47bb-0310-9956-ffa450edef68
2000-10-06 17:52:46 +00:00
Jeff Trawick
99cf606197
Fix some problems with the apr conversion so that APACHE_XLATE builds work
...
again.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86018 13f79535-47bb-0310-9956-ffa450edef68
2000-08-07 19:26:02 +00:00
Doug MacEachern
059d8dd212
prefix libapr functions and types with apr_
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
2000-08-02 05:27:38 +00:00
Ryan Bloom
22d9fbdec0
Move all APR functions related to strings to their own directory, and
...
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85867 13f79535-47bb-0310-9956-ffa450edef68
2000-07-21 19:50:58 +00:00
Jeff Trawick
b5c0ae056b
Include strings.h for strcasecmp(), strncasecmp(), and bzero().
...
Include time.h for time().
This removes a bunch of compiler warnings with gcc -Wall on AIX.
Submitted by: Jeff Trawick, Victor Orlikowski
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85723 13f79535-47bb-0310-9956-ffa450edef68
2000-06-28 14:33:48 +00:00
Bill Stoddard
944823a2f6
Fix another compiler warning. Forgot to commit this one along with the
...
earlier patch. Sorry...
Submitted by: Victor Orlikowski
Reviewed by: Bill Stoddard
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85713 13f79535-47bb-0310-9956-ffa450edef68
2000-06-27 22:39:13 +00:00
Ryan Bloom
16748b4e22
Remove the final vestiges of stat.h from Apache 2.0. All calls are now to
...
ap_stat. This also adds the new function ap_lstat(). This function is
analogous to lstat.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85535 13f79535-47bb-0310-9956-ffa450edef68
2000-06-12 15:29:09 +00:00
Ken Coar
c7159757ec
Add '-n' option to make htpasswd send user:pw result to
...
stdout instead of fiddling with a text file.
Reviewed by: Greg Stein
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85294 13f79535-47bb-0310-9956-ffa450edef68
2000-05-25 16:45:53 +00:00
Jeff Trawick
12eba90506
APR-ize the CHARSET_EBCDIC support in the SHA1 routines. The app (e.g.,
...
Apache, htpasswd) must call a function to set up translation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85231 13f79535-47bb-0310-9956-ffa450edef68
2000-05-16 19:48:08 +00:00
Jeff Trawick
12394ec1d5
EBCDIC bug fix: do the required translation handle initialization
...
so that ap_MD5Encode() can translate properly
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85227 13f79535-47bb-0310-9956-ffa450edef68
2000-05-16 03:59:15 +00:00
Roy T. Fielding
66c90f61ef
Get rid of warning by including crypt.h when available.
...
Make tmpnam stuff less complex.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85134 13f79535-47bb-0310-9956-ffa450edef68
2000-05-04 00:46:51 +00:00
Ken Coar
597b2a381b
Use our own buffer for tmpnam() if the platform seems to know
...
about it. Avoids threading and reentrancy problems.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85132 13f79535-47bb-0310-9956-ffa450edef68
2000-05-03 17:55:38 +00:00
Ken Coar
9452b0d2a6
Be more expliciti in our error messages if the tmpnam() call fails,
...
or we have trouble opening the filename it returns.
PR: Not a solution, but will help debug several
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85129 13f79535-47bb-0310-9956-ffa450edef68
2000-05-03 10:32:45 +00:00
William A. Rowe Jr
716eb6da71
PR:
...
Obtained from:
Submitted by:
Reviewed by:
Sorry I missed one. I -really- believe now that ap.h can now be safely swept
out to the attic, but I will leave for someone in unix to test and confirm.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85099 13f79535-47bb-0310-9956-ffa450edef68
2000-04-29 16:23:46 +00:00
Bill Stoddard
6b3fd8e36c
Some Windows tweaks from William Rowe...
...
Submitted by: William Rowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85034 13f79535-47bb-0310-9956-ffa450edef68
2000-04-25 21:18:04 +00:00
Bill Stoddard
befe0a03f6
Include apr_md5.h rather than the deprecated ap_md5.h. Fixes compile break.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85026 13f79535-47bb-0310-9956-ffa450edef68
2000-04-24 14:14:02 +00:00
Roy T. Fielding
e63f4def85
Update to Apache Software License version 1.1
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84881 13f79535-47bb-0310-9956-ffa450edef68
2000-03-31 09:42:55 +00:00
Bill Stoddard
28c41a0ee0
Get htpasswd compiling under Windows
...
Submitted by: William Rowe
Reviewed by: Bill Stoddard
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84826 13f79535-47bb-0310-9956-ffa450edef68
2000-03-22 15:21:57 +00:00