From fda15b351a8d5ac085e309ceda25e3a71cca27d7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 11 May 2004 21:57:15 +0000 Subject: As part of the work for making relocatable installs, I have re-factored all the code that looks for other binaries. I move FindExec into port/exec.c (and renamed it to find_my_binary()). I also added find_other_binary that looks for another binary in the same directory as the calling program, and checks the version string. The only behavior change was that initdb and pg_dump would look in the hard-coded bindir directory if it can't find the requested binary in the same directory as the caller. The new code throws an error. The old behavior seemed too error prone for version mismatches. --- src/include/miscadmin.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/include/miscadmin.h') diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index 76f2d086aea..fc312b3d74b 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -13,7 +13,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.156 2004/04/12 16:19:18 momjian Exp $ + * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.157 2004/05/11 21:57:15 momjian Exp $ * * NOTES * some of the information in this file should be moved to @@ -254,10 +254,6 @@ extern void SetSessionAuthorization(AclId userid, bool is_superuser); extern void SetDataDir(const char *dir); -extern int FindExec(char *full_path, const char *argv0, - const char *binary_name); -extern int CheckPathAccess(char *path, char *name, int open_mode); - /* in utils/misc/superuser.c */ extern bool superuser(void); /* current user is superuser */ extern bool superuser_arg(AclId userid); /* given user is superuser */ -- cgit v1.2.3