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
bbeeea14
Commit
bbeeea14
authored
Jan 06, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor mop-up for Windows home-directory stuff, per Magnus.
parent
41ca7563
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+2
-2
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-connect.c
+2
-1
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/fe-secure.c
+3
-1
src/port/path.c
src/port/path.c
+2
-1
No files found.
src/interfaces/libpq/Makefile
View file @
bbeeea14
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
# Portions Copyright (c) 1994, Regents of the University of California
#
#
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.12
5 2004/12/31 22:03:50 pgsq
l Exp $
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.12
6 2005/01/06 21:41:44 tg
l Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -55,7 +55,7 @@ endif
...
@@ -55,7 +55,7 @@ endif
# matter.)
# matter.)
SHLIB_LINK
+=
$(
filter
-lcrypt
-ldes
-lkrb
-lcom_err
-lcrypto
-lk5crypto
-lkrb5
-lssl
-lsocket
-lnsl
-lresolv
-lintl
,
$(LIBS)
)
$(PTHREAD_LIBS)
SHLIB_LINK
+=
$(
filter
-lcrypt
-ldes
-lkrb
-lcom_err
-lcrypto
-lk5crypto
-lkrb5
-lssl
-lsocket
-lnsl
-lresolv
-lintl
,
$(LIBS)
)
$(PTHREAD_LIBS)
ifeq
($(PORTNAME), win32)
ifeq
($(PORTNAME), win32)
SHLIB_LINK
+=
-lwsock32
-lws2_32
$(
filter
-leay32
-lssleay32
,
$(LIBS)
)
SHLIB_LINK
+=
-lwsock32
-lws2_32
-lshell32
$(
filter
-leay32
-lssleay32
,
$(LIBS)
)
endif
endif
...
...
src/interfaces/libpq/fe-connect.c
View file @
bbeeea14
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.29
8 2005/01/06 20:06:58
tgl Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.29
9 2005/01/06 21:41:44
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#ifdef WIN32
#ifdef WIN32
#include "win32.h"
#include "win32.h"
#define _WIN32_IE 0x0400
#include <shlobj.h>
#include <shlobj.h>
#else
#else
#include <sys/socket.h>
#include <sys/socket.h>
...
...
src/interfaces/libpq/fe-secure.c
View file @
bbeeea14
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.6
4 2005/01/06 18:29:10
tgl Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.6
5 2005/01/06 21:41:44
tgl Exp $
*
*
* NOTES
* NOTES
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
...
@@ -817,6 +817,7 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
...
@@ -817,6 +817,7 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
fnbuf
);
fnbuf
);
return
0
;
return
0
;
}
}
#ifndef WIN32
if
(
!
S_ISREG
(
buf
.
st_mode
)
||
(
buf
.
st_mode
&
0077
)
||
if
(
!
S_ISREG
(
buf
.
st_mode
)
||
(
buf
.
st_mode
&
0077
)
||
buf
.
st_uid
!=
getuid
())
buf
.
st_uid
!=
getuid
())
{
{
...
@@ -825,6 +826,7 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
...
@@ -825,6 +826,7 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
fnbuf
);
fnbuf
);
return
0
;
return
0
;
}
}
#endif
if
((
fp
=
fopen
(
fnbuf
,
"r"
))
==
NULL
)
if
((
fp
=
fopen
(
fnbuf
,
"r"
))
==
NULL
)
{
{
printfPQExpBuffer
(
&
conn
->
errorMessage
,
printfPQExpBuffer
(
&
conn
->
errorMessage
,
...
...
src/port/path.c
View file @
bbeeea14
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/path.c,v 1.4
8 2005/01/06 18:29:11
tgl Exp $
* $PostgreSQL: pgsql/src/port/path.c,v 1.4
9 2005/01/06 21:41:45
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include <ctype.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/stat.h>
#ifdef WIN32
#ifdef WIN32
#define _WIN32_IE 0x0400
#include <shlobj.h>
#include <shlobj.h>
#else
#else
#include <unistd.h>
#include <unistd.h>
...
...
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