~ubuntu-branches/ubuntu/trusty/postgresql-9.3/trusty-proposed

« back to all changes in this revision

Viewing changes to src/bin/initdb/findtimezone.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-07-24 16:13:59 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140724161359-uk325qfv03euxuuh
Tags: 9.3.5-0ubuntu0.14.04.1
* New upstream bug fix release: (LP: #1348176)
  - pg_upgrade: Users who upgraded to version 9.3 using pg_upgrade may have
    an issue with transaction information which causes VACUUM to eventually
    fail. These users should run the script provided in the release notes to
    determine if their installation is affected, and then take the remedy
    steps outlined there.
  - Various data integrity and other bug fixes.
  - Secure Unix-domain sockets of temporary postmasters started during make
    check.
    Any local user able to access the socket file could connect as the
    server's bootstrap superuser, then proceed to execute arbitrary code as
    the operating-system user running the test, as we previously noted in
    CVE-2014-0067. This change defends against that risk by placing the
    server's socket in a temporary, mode 0700 subdirectory of /tmp.
  - See release notes for details:
    http://www.postgresql.org/about/news/1534/
* Remove pg_regress patches to support --host=/path, obsolete with above
  upstream changes and not applicable any more.
* Drop tcl8.6 patch, applied upstream.
* Add missing logrotate test dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 * This is simpler than the backend function of the same name because
53
53
 * we assume that the input string has the correct case already, so there
54
54
 * is no need for case-folding.  (This is obviously true if we got the file
55
 
 * name from the filesystem to start with.      The only other place it can come
 
55
 * name from the filesystem to start with.  The only other place it can come
56
56
 * from is the environment variable TZ, and there seems no need to allow
57
57
 * case variation in that; other programs aren't likely to.)
58
58
 *
471
471
                return resultbuf;
472
472
 
473
473
        /*
474
 
         * Did not find the timezone.  Fallback to use a GMT zone.      Note that the
 
474
         * Did not find the timezone.  Fallback to use a GMT zone.  Note that the
475
475
         * Olson timezone database names the GMT-offset zones in POSIX style: plus
476
476
         * is west of Greenwich.  It's unfortunate that this is opposite of SQL
477
477
         * conventions.  Should we therefore change the names? Probably not...
490
490
 * Recursively scan the timezone database looking for the best match to
491
491
 * the system timezone behavior.
492
492
 *
493
 
 * tzdir points to a buffer of size MAXPGPATH.  On entry, it holds the
 
493
 * tzdir points to a buffer of size MAXPGPATH.  On entry, it holds the
494
494
 * pathname of a directory containing TZ files.  We internally modify it
495
495
 * to hold pathnames of sub-directories and files, but must restore it
496
496
 * to its original contents before exit.