diff options
| author | Bruce Momjian <bruce@momjian.us> | 1997-02-14 04:19:07 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1997-02-14 04:19:07 +0000 |
| commit | 31c8e94b34a4c9b6bde7fc4e8962954c42978a96 (patch) | |
| tree | 89fbc7f5e003e903728854c861f3ef9ffb0b0bda /src/backend/utils/init/findbe.c | |
| parent | aaaba5a04868067828c3f7348972e6210847bbea (diff) | |
| download | postgresql-31c8e94b34a4c9b6bde7fc4e8962954c42978a96.tar.gz | |
Remove WIN32 defines. They never worked.
Diffstat (limited to 'src/backend/utils/init/findbe.c')
| -rw-r--r-- | src/backend/utils/init/findbe.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/backend/utils/init/findbe.c b/src/backend/utils/init/findbe.c index b20e6541e1..b44d58e9f8 100644 --- a/src/backend/utils/init/findbe.c +++ b/src/backend/utils/init/findbe.c @@ -6,16 +6,12 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.2 1996/11/06 10:31:52 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.3 1997/02/14 04:18:08 momjian Exp $ * *------------------------------------------------------------------------- */ #include <stdio.h> -#ifndef WIN32 #include <grp.h> -#else -#include <windows.h> -#endif /* WIN32 */ #include <pwd.h> #include <string.h> #include <sys/stat.h> @@ -47,7 +43,6 @@ int ValidateBackend(char *path) { -#ifndef WIN32 struct stat buf; uid_t euid; struct group *gp; @@ -56,9 +51,6 @@ ValidateBackend(char *path) int is_r = 0; int is_x = 0; int in_grp = 0; -#else - DWORD file_attributes; -#endif /* WIN32 */ /* * Ensure that the file exists and is a regular file. @@ -73,7 +65,6 @@ ValidateBackend(char *path) return(-1); } -#ifndef WIN32 if (stat(path, &buf) < 0) { if (DebugLvl > 1) fprintf(stderr, "ValidateBackend: can't stat \"%s\"\n", @@ -139,13 +130,6 @@ ValidateBackend(char *path) fprintf(stderr, "ValidateBackend: \"%s\" is not other read/execute\n", path); return(is_x ? (is_r ? 0 : -2) : -1); -#else - file_attributes = GetFileAttributes(path); - if(file_attributes != 0xFFFFFFFF) - return(0); - else - return(-1); -#endif /* WIN32 */ } /* @@ -163,11 +147,6 @@ FindBackend(char *backend, char *argv0) char *path, *startp, *endp; int pathlen; -#ifdef WIN32 - strcpy(backend, argv0); - return(0); -#endif /* WIN32 */ - /* * for the postmaster: * First try: use the backend that's located in the same directory |
