Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0a2c82b5
Commit
0a2c82b5
authored
Nov 11, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .exe to Win32 stat calls. Don't symlink postmaster on Win32.
parent
580fb7fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
src/backend/Makefile
src/backend/Makefile
+7
-3
src/backend/utils/init/findbe.c
src/backend/utils/init/findbe.c
+12
-1
No files found.
src/backend/Makefile
View file @
0a2c82b5
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.9
5 2003/03/21 17:18:34 petere
Exp $
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.9
6 2003/11/11 03:53:32 momjian
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -138,8 +138,12 @@ endif
install-bin
:
postgres $(POSTGRES_IMP) installdirs
$(INSTALL_PROGRAM)
postgres
$(X)
$(DESTDIR)$(bindir)
/postgres
$(X)
@
rm
-f
$(DESTDIR)$(bindir)
/postmaster
ln
-s
postgres
$(X)
$(DESTDIR)$(bindir)
/postmaster
ifneq
($(PORTNAME), win32)
@
rm
-f
$(DESTDIR)$(bindir)
/postmaster
$(X)
ln
-s
postgres
$(X)
$(DESTDIR)$(bindir)
/postmaster
$(X)
else
$(INSTALL_PROGRAM)
postgres
$(X)
$(DESTDIR)$(bindir)
/postmaster
$(X)
endif
ifeq
($(MAKE_EXPORTS), true)
$(INSTALL_DATA)
$(POSTGRES_IMP)
$(DESTDIR)$(pkglibdir)
/
$(POSTGRES_IMP)
endif
...
...
src/backend/utils/init/findbe.c
View file @
0a2c82b5
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.3
7 2003/08/04 02:40:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.3
8 2003/11/11 03:53:33
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -49,12 +49,23 @@ ValidateBinary(char *path)
uid_t
euid
;
struct
group
*
gp
;
struct
passwd
*
pwp
;
char
path_exe
[
MAXPGPATH
+
2
+
strlen
(
".exe"
)];
#endif
int
i
;
int
is_r
=
0
;
int
is_x
=
0
;
int
in_grp
=
0
;
#ifdef WIN32
/* Win32 requires a .exe suffix for stat() */
if
(
strlen
(
path
)
>=
4
&&
strcmp
(
path
+
strlen
(
path
)
-
strlen
(
".exe"
),
".exe"
)
!=
0
)
{
strcpy
(
path_exe
,
path
);
strcat
(
path_exe
,
".exe"
);
path
=
path_exe
;
}
#endif
/*
* Ensure that the file exists and is a regular file.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment