summaryrefslogtreecommitdiff
path: root/japanese/elvis/files/patch-elvrec.c
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-04-18 11:17:45 +0000
committerRene Ladan <rene@FreeBSD.org>2014-04-18 11:17:45 +0000
commit8b3c8800eb286d7ad9ba4d8e56c1f94a436e2ca9 (patch)
tree05eb10cc44d61de9b8f970b16f50e25c5a245d53 /japanese/elvis/files/patch-elvrec.c
parent- Update to 2.0.0 - announce message is here: (diff)
Remove expired ports:
2014-04-16 ports-mgmt/pkgsearch: Upstream disappeared 2014-04-17 science/flounder: Unmaintained since 2002 2014-04-17 security/nbaudit: Unmaintained since 2002 2014-04-17 security/saint: Unmaintained since 2002 2014-04-17 graphics/gozer: Unmaintained since 2002 2014-04-17 misc/pdfmap: Unmaintained since 2002 2014-04-17 devel/showgrammar: Unmaintained since 2002 2014-04-17 biology/libgenome: Unmaintained since 2002 2014-04-17 deskutils/narval: Unmaintained since 2002 2014-04-17 devel/fampp: Unmaintained since 2002 2014-04-17 net-p2p/py-fngrab: Unmaintained since 2002 2014-04-17 misc/wmfirew: Unmaintained since 2002 2014-04-17 x11-wm/e16utils: Unmaintained since 2002 2014-04-17 misc/salias: Unmaintained since 2002 2014-04-17 print/latex2slides: Unmaintained since 2002 2014-04-17 lang/sxm: Unmaintained since 2002 2014-04-17 textproc/pybook: Unmaintained since 2002 2014-04-17 mail/mailcrypt: Unmaintained since 2002 2014-04-17 japanese/elvis: Unmaintained since 2002 2014-04-17 devel/prototype: Unmaintained since 2002 2014-04-17 print/wprint: Unmaintained since 2002 2014-04-17 science/euler: Unmaintained since 2002 2014-04-17 multimedia/gopchop: Unmaintained since 2002 2014-04-17 science/gdis: Unmaintained since 2002 2014-04-17 net/googolplex: Unmaintained since 2002 2014-04-17 lang/logo: Unmaintained since 2002 2014-04-17 textproc/roap: Unmaintained since 2002 2014-04-17 x11-wm/afterstep-i18n: Unmaintained since 2002 2014-04-17 games/yamsweeper: Unmaintained since 2002 2014-04-17 net-mgmt/echolot: Unmaintained since 2002 2014-04-17 security/pam_smb: Unmaintained since 2002 2014-04-18 devel/lua-redis-parser: Broken for more than 6 months 2014-04-18 biology/finchtv: Broken for more than 6 months 2014-04-18 net-im/ari-yahoo: Broken for more than 1 year (http://www.icculus.org/ari-yahoo/)
Notes
Notes: svn path=/head/; revision=351531
Diffstat (limited to 'japanese/elvis/files/patch-elvrec.c')
-rw-r--r--japanese/elvis/files/patch-elvrec.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/japanese/elvis/files/patch-elvrec.c b/japanese/elvis/files/patch-elvrec.c
deleted file mode 100644
index 0fc758617127..000000000000
--- a/japanese/elvis/files/patch-elvrec.c
+++ /dev/null
@@ -1,55 +0,0 @@
---- elvrec.c.orig Mon Mar 21 14:27:37 1994
-+++ elvrec.c Sun Jan 28 20:52:16 2001
-@@ -10,6 +10,7 @@
- */
-
-
-+#include <sys/param.h>
- #include <stdio.h>
- #include "config.h"
- #include "vi.h"
-@@ -22,8 +23,8 @@
- char *basename; /* the name of the file to recover */
- char *outname; /* the name of the file to write to */
- {
-- char pathname[500]; /* full pathname of the file to recover */
-- char line[600]; /* a line from the /usr/preserve/Index file */
-+ char pathname[MAXPATHLEN]; /* full pathname of the file to recover */
-+ char line[MAXPATHLEN]; /* a line from the /usr/preserve/Index file */
- int ch; /* a character from the text being recovered */
- FILE *from; /* the /usr/preserve file, or /usr/preserve/Index */
- FILE *to; /* the user's text file */
-@@ -42,19 +43,15 @@
- if (basename[0] != SLASH)
- # endif
- {
-- ptr = getcwd(pathname, sizeof pathname);
-- if (ptr != pathname)
-- {
-- strcpy(pathname, ptr);
-- }
-- ptr = pathname + strlen(pathname);
-- *ptr++ = SLASH;
-- strcpy(ptr, basename);
-+ if ((ptr = getcwd(pathname, sizeof pathname)) == NULL)
-+ err(1, "getcwd() failed");
-+ snprintf(pathname, sizeof(pathname), "%s/%s", ptr,
-+ basename);
- }
- else
- #endif
- {
-- strcpy(pathname, basename);
-+ strlcpy(pathname, basename, sizeof(pathname));
- }
- }
-
-@@ -67,6 +64,8 @@
- * version of this file.
- */
- from = fopen(PRSVINDEX, "r");
-+ if (!from)
-+ err(1, "fopen() %s failed", PRSVINDEX);
- while (from && fgets(line, sizeof line, from))
- {
- /* strip off the newline from the end of the string */