summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authormotoyuki <motoyuki@FreeBSD.org>1998-10-09 14:51:07 +0000
committermotoyuki <motoyuki@FreeBSD.org>1998-10-09 14:51:07 +0000
commit1dd1d4212cf0404f68c618124573f80aae5bcda5 (patch)
treebfe95374f9b4ee75bfb49572958ba9c845832f7c /editors
parentfe17a8e4413573654d1e2e95dc8e48536a16e019 (diff)
downloadFreeBSD-ports-1dd1d4212cf0404f68c618124573f80aae5bcda5.zip
FreeBSD-ports-1dd1d4212cf0404f68c618124573f80aae5bcda5.tar.gz
Fix the emacsclient bug.
PR: ports/8208
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs/files/patch-ba22
-rw-r--r--editors/emacs19/files/patch-ba22
-rw-r--r--editors/emacs22/files/patch-ba22
-rw-r--r--editors/emacs23/files/patch-ba22
-rw-r--r--editors/mule-common/files/patch-ba22
5 files changed, 110 insertions, 0 deletions
diff --git a/editors/emacs/files/patch-ba b/editors/emacs/files/patch-ba
new file mode 100644
index 0000000..c9f637a
--- /dev/null
+++ b/editors/emacs/files/patch-ba
@@ -0,0 +1,22 @@
+--- lib-src/emacsclient.c.old Tue Jul 23 23:18:33 1996
++++ lib-src/emacsclient.c Thu Oct 8 22:34:54 1998
+@@ -94,6 +94,8 @@
+ struct stat statbfr;
+
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (stat (server.sun_path, &statbfr) == -1)
+--- lib-src/emacsserver.c.old Wed Jul 17 07:09:29 1996
++++ lib-src/emacsserver.c Thu Oct 8 22:35:08 1998
+@@ -115,6 +115,8 @@
+ server.sun_family = AF_UNIX;
+ #ifndef SERVER_HOME_DIR
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (unlink (server.sun_path) == -1 && errno != ENOENT)
diff --git a/editors/emacs19/files/patch-ba b/editors/emacs19/files/patch-ba
new file mode 100644
index 0000000..c9f637a
--- /dev/null
+++ b/editors/emacs19/files/patch-ba
@@ -0,0 +1,22 @@
+--- lib-src/emacsclient.c.old Tue Jul 23 23:18:33 1996
++++ lib-src/emacsclient.c Thu Oct 8 22:34:54 1998
+@@ -94,6 +94,8 @@
+ struct stat statbfr;
+
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (stat (server.sun_path, &statbfr) == -1)
+--- lib-src/emacsserver.c.old Wed Jul 17 07:09:29 1996
++++ lib-src/emacsserver.c Thu Oct 8 22:35:08 1998
+@@ -115,6 +115,8 @@
+ server.sun_family = AF_UNIX;
+ #ifndef SERVER_HOME_DIR
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (unlink (server.sun_path) == -1 && errno != ENOENT)
diff --git a/editors/emacs22/files/patch-ba b/editors/emacs22/files/patch-ba
new file mode 100644
index 0000000..c9f637a
--- /dev/null
+++ b/editors/emacs22/files/patch-ba
@@ -0,0 +1,22 @@
+--- lib-src/emacsclient.c.old Tue Jul 23 23:18:33 1996
++++ lib-src/emacsclient.c Thu Oct 8 22:34:54 1998
+@@ -94,6 +94,8 @@
+ struct stat statbfr;
+
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (stat (server.sun_path, &statbfr) == -1)
+--- lib-src/emacsserver.c.old Wed Jul 17 07:09:29 1996
++++ lib-src/emacsserver.c Thu Oct 8 22:35:08 1998
+@@ -115,6 +115,8 @@
+ server.sun_family = AF_UNIX;
+ #ifndef SERVER_HOME_DIR
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (unlink (server.sun_path) == -1 && errno != ENOENT)
diff --git a/editors/emacs23/files/patch-ba b/editors/emacs23/files/patch-ba
new file mode 100644
index 0000000..c9f637a
--- /dev/null
+++ b/editors/emacs23/files/patch-ba
@@ -0,0 +1,22 @@
+--- lib-src/emacsclient.c.old Tue Jul 23 23:18:33 1996
++++ lib-src/emacsclient.c Thu Oct 8 22:34:54 1998
+@@ -94,6 +94,8 @@
+ struct stat statbfr;
+
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (stat (server.sun_path, &statbfr) == -1)
+--- lib-src/emacsserver.c.old Wed Jul 17 07:09:29 1996
++++ lib-src/emacsserver.c Thu Oct 8 22:35:08 1998
+@@ -115,6 +115,8 @@
+ server.sun_family = AF_UNIX;
+ #ifndef SERVER_HOME_DIR
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (unlink (server.sun_path) == -1 && errno != ENOENT)
diff --git a/editors/mule-common/files/patch-ba b/editors/mule-common/files/patch-ba
new file mode 100644
index 0000000..c9f637a
--- /dev/null
+++ b/editors/mule-common/files/patch-ba
@@ -0,0 +1,22 @@
+--- lib-src/emacsclient.c.old Tue Jul 23 23:18:33 1996
++++ lib-src/emacsclient.c Thu Oct 8 22:34:54 1998
+@@ -94,6 +94,8 @@
+ struct stat statbfr;
+
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (stat (server.sun_path, &statbfr) == -1)
+--- lib-src/emacsserver.c.old Wed Jul 17 07:09:29 1996
++++ lib-src/emacsserver.c Thu Oct 8 22:35:08 1998
+@@ -115,6 +115,8 @@
+ server.sun_family = AF_UNIX;
+ #ifndef SERVER_HOME_DIR
+ gethostname (system_name, sizeof (system_name));
++ system_name[sizeof (system_name) - 1] = '\0';
++ /* system_name must be null-terminated string */
+ sprintf (server.sun_path, "/tmp/esrv%d-%s", geteuid (), system_name);
+
+ if (unlink (server.sun_path) == -1 && errno != ENOENT)
OpenPOWER on IntegriCloud