Revision: 95952 https://trac.macports.org/changeset/95952 Author: takanori@macports.org Date: 2012-07-26 17:55:12 -0700 (Thu, 26 Jul 2012) Log Message: ----------- FDclone: version 3.00m Modified Paths: -------------- trunk/dports/sysutils/FDclone/Portfile trunk/dports/sysutils/FDclone/files/patch-Makefile.in.diff Added Paths: ----------- trunk/dports/sysutils/FDclone/files/patch-shell.c.diff Removed Paths: ------------- trunk/dports/sysutils/FDclone/files/patch-custom.c.diff trunk/dports/sysutils/FDclone/files/patch-file.c.diff Modified: trunk/dports/sysutils/FDclone/Portfile =================================================================== --- trunk/dports/sysutils/FDclone/Portfile 2012-07-26 23:31:42 UTC (rev 95951) +++ trunk/dports/sysutils/FDclone/Portfile 2012-07-27 00:55:12 UTC (rev 95952) @@ -3,7 +3,7 @@ PortSystem 1.0 name FDclone -version 3.00l +version 3.00m categories sysutils shells maintainers takanori openmaintainer description File & Directory Maintenance Tool @@ -17,10 +17,9 @@ distname FD-${version} patchfiles patch-Makefile.in.diff \ patch-archive.c.diff \ - patch-custom.c.diff \ patch-fd.h.diff \ - patch-file.c.diff -checksums rmd160 b9e3552229780b39b53b1859766eb75fe82bf68c + patch-shell.c.diff +checksums rmd160 26d8d4a0c0b02f3d34b7acb8a861c27b4d9b36c4 depends_lib port:ncurses Modified: trunk/dports/sysutils/FDclone/files/patch-Makefile.in.diff =================================================================== --- trunk/dports/sysutils/FDclone/files/patch-Makefile.in.diff 2012-07-26 23:31:42 UTC (rev 95951) +++ trunk/dports/sysutils/FDclone/files/patch-Makefile.in.diff 2012-07-27 00:55:12 UTC (rev 95952) @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2012-06-30 00:00:00.000000000 +0900 -+++ Makefile.in 2012-06-30 11:14:53.000000000 +0900 +--- Makefile.in.orig 2012-07-27 00:00:00.000000000 +0900 ++++ Makefile.in 2012-07-27 09:11:13.000000000 +0900 @@ -13,7 +13,7 @@ BINDIR = $(BUILD)$(BINTOP) DATATOP = $(PREFIX)/share @@ -9,7 +9,7 @@ MANDIR = $(BUILD)$(MANTOP)/man$(MANSEC) CATDIR = $(BUILD)$(MANTOP)/cat$(MANSEC) JMANDIR = $(BUILD)$(MANTOP)__LANGDIR__/man$(MANSEC) -@@ -227,7 +227,7 @@ +@@ -228,7 +228,7 @@ $(PROGRAM)$(EXE): $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(ARGS) __SLEEP__ @sleep 1 @@ -18,7 +18,7 @@ __DJGPP1__ @ren $@ $(PROGRAM) __DJGPP1__ @aout2exe $(PROGRAM) __DJGPP1__ @del $(PROGRAM) -@@ -462,7 +462,7 @@ +@@ -466,7 +466,7 @@ ############################################################ # to install all Deleted: trunk/dports/sysutils/FDclone/files/patch-custom.c.diff =================================================================== --- trunk/dports/sysutils/FDclone/files/patch-custom.c.diff 2012-07-26 23:31:42 UTC (rev 95951) +++ trunk/dports/sysutils/FDclone/files/patch-custom.c.diff 2012-07-27 00:55:12 UTC (rev 95952) @@ -1,17 +0,0 @@ ---- custom.c.orig 2012-06-30 00:00:00.000000000 +0900 -+++ custom.c 2012-06-30 22:32:55.000000000 +0900 -@@ -4004,11 +4004,10 @@ - char *new; - int i, j, n; - -- if (origflaglist) new = NULL; -+ if (origflaglist || origmaxfdtype <= 0) new = NULL; - else { -- for (n = 0; n < origmaxfdtype; n++) /*EMPTY*/; -- origflaglist = new = Xmalloc(n * sizeof(char)); -- memset(origflaglist, 0, n * sizeof(char)); -+ origflaglist = new = Xmalloc(origmaxfdtype * sizeof(char)); -+ memset(origflaglist, 0, origmaxfdtype * sizeof(char)); - } - - for (i = n = 0; i < maxfdtype; i++) { Deleted: trunk/dports/sysutils/FDclone/files/patch-file.c.diff =================================================================== --- trunk/dports/sysutils/FDclone/files/patch-file.c.diff 2012-07-26 23:31:42 UTC (rev 95951) +++ trunk/dports/sysutils/FDclone/files/patch-file.c.diff 2012-07-27 00:55:12 UTC (rev 95952) @@ -1,11 +0,0 @@ ---- file.c.orig 2010-09-25 00:00:00.000000000 +0900 -+++ file.c 2012-03-10 02:21:02.000000000 +0900 -@@ -612,7 +612,7 @@ - lockbuf_t *lck; - XFILE *fp; - -- if (!(lck = lockopen(path, flags, 0666))) return(NULL); -+ if (!(lck = lockopen(path, flags, 0666 & ~tmpumask))) return(NULL); - - if (!(lck -> flags & LCK_INVALID)) { - if (!(fp = Xfdopen(lck -> fd, type))) { Added: trunk/dports/sysutils/FDclone/files/patch-shell.c.diff =================================================================== --- trunk/dports/sysutils/FDclone/files/patch-shell.c.diff (rev 0) +++ trunk/dports/sysutils/FDclone/files/patch-shell.c.diff 2012-07-27 00:55:12 UTC (rev 95952) @@ -0,0 +1,11 @@ +--- shell.c.orig 2012-07-27 00:00:00.000000000 +0900 ++++ shell.c 2012-07-27 09:18:47.000000000 +0900 +@@ -1716,7 +1716,7 @@ + if (!histfile[n] || !*(histfile[n]) || savehist[n] <= 0) return(0); + if (!history[n] || !history[n][0]) return(-1); + lck = lockfopen(histfile[n], "w", +- O_BINARY | O_WRONLY | O_CREAT | O_TRUNC, 0); ++ O_BINARY | O_WRONLY | O_CREAT | O_TRUNC, 077); + if (!lck || !(lck -> fp)) { + lockclose(lck); + return(-1);
participants (1)
-
takanori@macports.org