- modified patches % transconnect-1.2.dif (refreshed) - added patches fix build with gcc15 + transconnect-gcc15.patch OBS-URL: https://build.opensuse.org/request/show/1291427 OBS-URL: https://build.opensuse.org/package/show/network:utilities/transconnect?expand=0&rev=8
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
--- a/Makefile
|
|
+++ b/Makefile 2002/06/21 12:12:27
|
|
@@ -1,6 +1,6 @@
|
|
# Makefile for transconnect
|
|
|
|
-CFLAGS = -Wall
|
|
+CFLAGS = -Wall -fPIC
|
|
LDFLAGS = -shared
|
|
LINUX_LDLIBS = -ldl
|
|
|
|
--- a/tconn.c
|
|
+++ b/tconn.c
|
|
@@ -149,7 +149,7 @@
|
|
struct passwd *pwent; /* Needed for reading the password file to extract home directory */
|
|
|
|
int optval; /* Options for socket */
|
|
- int optlen;
|
|
+ socklen_t optlen;
|
|
|
|
#ifdef _BSD_HACK_
|
|
static void *handle; /* On BSD we can't use RTLD_NEXT. So we need a handle to libc */
|
|
@@ -197,7 +197,7 @@ int connect (int sockfd, const struct so
|
|
{
|
|
/* use config file name from environment variable */
|
|
strncpy (configfile, tconn_env, CONFIG_FILE_MAX);
|
|
- configfile[CONFIG_FILE_MAX] = '\0';
|
|
+ configfile[CONFIG_FILE_MAX-1] = '\0';
|
|
}
|
|
else
|
|
{
|
|
@@ -215,7 +215,7 @@ int connect (int sockfd, const struct so
|
|
|
|
strncat (configfile, CONFIG_FILE_DEFAULT,
|
|
(sizeof(CONFIG_FILE_DEFAULT) + 1));
|
|
- configfile[CONFIG_FILE_MAX] = '\0';
|
|
+ configfile[CONFIG_FILE_MAX-1] = '\0';
|
|
}
|
|
else
|
|
{
|