~clint-fewbar/ubuntu/maverick/apache2/maverick-passphrase-plymouth-change

« back to all changes in this revision

Viewing changes to srclib/apr/test/testnames.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch, Stefan Fritsch, Peter Samuelson
  • Date: 2007-07-01 19:57:51 UTC
  • mfrom: (0.8.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701195751-kcags6dpm5up3li5
Tags: 2.2.4-1
[ Stefan Fritsch ]
* Urgency medium for security fix
* Fix CVE-2007-1863: DoS in mod_cache
* New upstream version (Closes: #427050)
  - Fixes "proxy: error reading status line from remote server"
    (Closes: #410331)
* Fix CVE-2007-1862: mod_mem_cache DoS (introduced in 2.2.4)
* Change logrotate script to use reload instead of restart.
  (Closes: #298689)
* chmod o-rx /var/log/apache2 (Closes: #291841)
* chmod o-x suexec (Closes: #431048)
* Update patch for truncated mod_cgi 500 responses from upstream SVN
  (Closes: #412580)
* Don't use AddDefaultCharset for our docs (Closes: #414429)
* fix options syntax in sites-available/default (Closes: #419539)
* Move conf.d include to the end of apache2.conf (Closes: #305933)
* Remove log, cache, and lock files on purge (Closes: #428887)
* Ship /usr/lib/cgi-bin (Closes: #415698)
* Add note to README.Debian how to read docs (Closes: #350822)
* Document pid file name (Closes: #350286)
* Update Standards-Version (no changes needed)
* Fix some lintian warnings, add some overrides
* Start apache when doing a "restart" even if it was not running
  (Closes: #384682)
* reload config in apache2-doc postinst (Closes: #289289)
* don't fail in prerm if apache is not running (Closes: #418536)
* Suggest apache2-doc and www-browser (Closes: #399056)
* Make init script always display a warning if NO_START=1 since
  VERBOSE=yes is not the default anymore (Closes: #430116)
* Replace apache2(8) man page with a more current version
* Add httxt2dbm(8) man page
* Show -X option in help message (Closes: #391817)
* remove sick-hack-to-update-modules
* don't depend on procps on hurd (Closes: #431125)

[ Peter Samuelson ]
* Add shlibs:Depends to apache2.2-common.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
2
 
 * applicable.
3
 
 *
4
 
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 
 * you may not use this file except in compliance with the License.
6
 
 * You may obtain a copy of the License at
 
1
/* Licensed to the Apache Software Foundation (ASF) under one or more
 
2
 * contributor license agreements.  See the NOTICE file distributed with
 
3
 * this work for additional information regarding copyright ownership.
 
4
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
5
 * (the "License"); you may not use this file except in compliance with
 
6
 * the License.  You may obtain a copy of the License at
7
7
 *
8
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
9
 *
91
91
    ABTS_STR_EQUAL(tc, "../test", dstpath);
92
92
}
93
93
 
 
94
static void merge_dotdot_dotdot_dotdot(abts_case *tc, void *data)
 
95
{
 
96
    apr_status_t rv;
 
97
    char *dstpath = NULL;
 
98
 
 
99
    rv = apr_filepath_merge(&dstpath, "", 
 
100
                            "../../..", APR_FILEPATH_TRUENAME, p);
 
101
    ABTS_PTR_NOTNULL(tc, dstpath);
 
102
    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 
103
    ABTS_STR_EQUAL(tc, "../../..", dstpath);
 
104
 
 
105
    rv = apr_filepath_merge(&dstpath, "", 
 
106
                            "../../../", APR_FILEPATH_TRUENAME, p);
 
107
    ABTS_PTR_NOTNULL(tc, dstpath);
 
108
    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 
109
    ABTS_STR_EQUAL(tc, "../../../", dstpath);
 
110
}
 
111
 
94
112
static void merge_secure(abts_case *tc, void *data)
95
113
{
96
114
    apr_status_t rv;
221
239
    ABTS_INT_EQUAL(tc, '/', root[2]);
222
240
    ABTS_INT_EQUAL(tc, 0, root[3]);
223
241
    ABTS_STR_EQUAL(tc, origpath + 3, path);
 
242
#elif defined(NETWARE)
 
243
    ABTS_INT_EQUAL(tc, origpath[0], root[0]);
 
244
    {
 
245
    char *pt = strchr(root, ':');
 
246
    ABTS_PTR_NOTNULL(tc, pt);
 
247
    ABTS_INT_EQUAL(tc, ':', pt[0]);
 
248
    ABTS_INT_EQUAL(tc, '/', pt[1]);
 
249
    ABTS_INT_EQUAL(tc, 0, pt[2]);
 
250
    pt = strchr(origpath, ':');
 
251
    ABTS_PTR_NOTNULL(tc, pt);
 
252
    ABTS_STR_EQUAL(tc, (pt+2), path);
 
253
    }
224
254
#else
225
255
    ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
226
256
    ABTS_STR_EQUAL(tc, "/", root);
249
279
    abts_run_test(suite, merge_notrelfail, NULL);
250
280
    abts_run_test(suite, merge_notabs, NULL);
251
281
    abts_run_test(suite, merge_notabsfail, NULL);
 
282
    abts_run_test(suite, merge_dotdot_dotdot_dotdot, NULL);
252
283
 
253
284
    abts_run_test(suite, root_absolute, NULL);
254
285
    abts_run_test(suite, root_relative, NULL);