postgresql/src
Tom Lane 793c583508 Fix a number of places that were making file-type tests infelicitously.
The places that did, eg,
	(statbuf.st_mode & S_IFMT) == S_IFDIR
were correct, but there is no good reason not to use S_ISDIR() instead,
especially when that's what the other 90% of our code does.  The places
that did, eg,
	(statbuf.st_mode & S_IFDIR)
were flat out *wrong* and would fail in various platform-specific ways,
eg a symlink could be mistaken for a regular file on most Unixen.

The actual impact of this is probably small, since the problem cases
seem to always involve symlinks or sockets, which are unlikely to be
found in the directories that PG code might be scanning.  But it's
clearly trouble waiting to happen, so patch all the way back anyway.
(There seem to be no occurrences of the mistake in 7.4.)
2008-03-31 01:32:01 +00:00
..
backend Fix a number of places that were making file-type tests infelicitously. 2008-03-31 01:32:01 +00:00
bin Include \password in the psql help. 2008-03-26 15:52:36 +00:00
include When a relation has been proven empty by constraint exclusion, propagate that 2008-03-24 21:53:12 +00:00
interfaces added ECPGget_PGconn to exports.txt 2008-03-25 12:45:33 +00:00
makefiles Teach pgxs.mk and Install.pm how to install files from a contrib module 2007-10-16 16:00:00 +00:00
pl Document the fix for perl 5.10 with this comment: 2008-01-23 00:55:47 +00:00
port Fix a number of places that were making file-type tests infelicitously. 2008-03-31 01:32:01 +00:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Fix a number of places that were making file-type tests infelicitously. 2008-03-31 01:32:01 +00:00
timezone Update to tzdata 2008a distribution (Chilean DST law change). 2008-03-13 19:21:49 +00:00
tools Support for building contrib/uuid-ossp with MSVC. 2008-02-28 12:18:03 +00:00
tutorial Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in I find that an out-of-the-box installation of OSSP uuid 1.6.0 installs 2007-11-13 00:13:19 +00:00
Makefile.shlib Change $(CC) to $(COMPILER) on Solaris gcc so -m64 is passed into the 2007-02-20 22:45:57 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00