]> git.pld-linux.org Git - packages/rdist.git/commitdiff
- rename
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Jul 2000 19:43:08 +0000 (19:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rdist-links.patch -> 1.1
    rdist-linux.patch -> 1.1
    rdist-oldpath.patch -> 1.1

rdist-links.patch [new file with mode: 0644]
rdist-linux.patch [new file with mode: 0644]
rdist-oldpath.patch [new file with mode: 0644]

diff --git a/rdist-links.patch b/rdist-links.patch
new file mode 100644 (file)
index 0000000..187dce4
--- /dev/null
@@ -0,0 +1,74 @@
+--- rdist-6.1.5/src/client.c.links     Wed Feb 17 17:46:09 1999
++++ rdist-6.1.5/src/client.c   Wed Feb 17 17:51:15 1999
+@@ -309,6 +309,18 @@
+       return(0);
+ }
++void freelinkinfo(lp)
++      struct linkbuf *lp;
++{
++      if (lp->pathname)
++              free(lp->pathname);
++      if (lp->src)
++              free(lp->src);
++      if (lp->target)
++              free(lp->target);
++      free(lp);
++}
++
+ /*
+  * Save and retrieve hard link info
+  */
+@@ -317,6 +329,7 @@
+ {
+       struct linkbuf *lp;
++      /* xxx: linear search doesn't scale with many links */
+       for (lp = ihead; lp != NULL; lp = lp->nextp)
+               if (lp->inum == statp->st_ino && lp->devnum == statp->st_dev) {
+                       lp->count--;
+@@ -329,12 +342,14 @@
+       lp->inum = statp->st_ino;
+       lp->devnum = statp->st_dev;
+       lp->count = statp->st_nlink - 1;
+-      (void) strcpy(lp->pathname, target);
+-      (void) strcpy(lp->src, source);
++      lp->pathname = strdup(target);
++      lp->src = strdup(source);
+       if (Tdest)
+-              (void) strcpy(lp->target, Tdest);
++              lp->target = strdup(Tdest);
+       else
+-              *lp->target = CNULL;
++              lp->target = NULL;
++      if (!lp->pathname || !lp->src || !(Tdest && lp->target))
++              fatalerr("Cannot malloc memory in linkinfo.");
+       return((struct linkbuf *) NULL);
+ }
+--- rdist-6.1.5/src/docmd.c.links      Wed Feb 17 17:51:23 1999
++++ rdist-6.1.5/src/docmd.c    Wed Feb 17 17:52:44 1999
+@@ -586,7 +586,7 @@
+       if (!nflag) {
+               register struct linkbuf *nextl, *l;
+-              for (l = ihead; l != NULL; free((char *)l), l = nextl) {
++              for (l = ihead; l != NULL; freelinkinfo(l), l = nextl) {
+                       nextl = l->nextp;
+                       if (contimedout || IS_ON(opts, DO_IGNLNKS) || 
+                           l->count == 0)
+--- rdist-6.1.5/include/defs.h.links   Wed Feb 17 17:52:58 1999
++++ rdist-6.1.5/include/defs.h Wed Feb 17 17:53:47 1999
+@@ -276,9 +276,9 @@
+       ino_t   inum;
+       dev_t   devnum;
+       int     count;
+-      char    pathname[BUFSIZ];
+-      char    src[BUFSIZ];
+-      char    target[BUFSIZ];
++      char    *pathname;
++      char    *src;
++      char    *target;
+       struct  linkbuf *nextp;
+ };
diff --git a/rdist-linux.patch b/rdist-linux.patch
new file mode 100644 (file)
index 0000000..1f9fb82
--- /dev/null
@@ -0,0 +1,23 @@
+diff: rdist-6.1.5/config/mf: No such file or directory
+--- rdist-6.1.5/config/os-linux.h.linux        Mon Nov  9 22:59:59 1998
++++ rdist-6.1.5/config/os-linux.h      Thu Nov 12 14:50:35 1998
+@@ -58,7 +58,7 @@
+ /*
+  * Select the type of executable file format.
+  */
+-#define EXE_TYPE      EXE_AOUT
++#define EXE_TYPE      EXE_ELF
+ /*
+  * Select the type of statfs() system call (if any).
+--- rdist-6.1.5/mf/Makefile.var.linux  Tue Nov 10 00:02:11 1998
++++ rdist-6.1.5/mf/Makefile.var        Thu Nov 12 14:50:35 1998
+@@ -67,7 +67,7 @@
+ #
+ # Name of YACC.
+ #
+-#YACC                 = bison -y
++YACC          = bison -y
+ OPT           = -g
+ RM            = rm
diff --git a/rdist-oldpath.patch b/rdist-oldpath.patch
new file mode 100644 (file)
index 0000000..556e050
--- /dev/null
@@ -0,0 +1,45 @@
+--- rdist-6.1.5/config/config.h.oldpath        Mon Nov  9 22:59:48 1998
++++ rdist-6.1.5/config/config.h        Tue Apr 13 15:09:55 1999
+@@ -39,7 +39,7 @@
+  * don't have the old rdist, then uncomment the "#undef" line.
+  */
+ #ifndef _PATH_OLDRDIST
+-#define _PATH_OLDRDIST        "/usr/ucb/oldrdist"     /* Enable compat */
++#define _PATH_OLDRDIST        "/usr/bin/oldrdist"     /* Enable compat */
+ #endif
+ /*#undef  _PATH_OLDRDIST*/                            /* Disable compat */
+--- rdist-6.1.5/doc/rdist.man.oldpath  Tue Apr 13 15:11:33 1999
++++ rdist-6.1.5/doc/rdist.man  Tue Apr 13 15:13:42 1999
+@@ -170,10 +170,9 @@
+ This option will only work if 
+ .I rdist
+ was compiled with the location of the old rdist
+-(usually either
+-.I /usr/ucb/oldrdist
+-or
+-.I /usr/old/rdist)
++(the path
++.I/usr/bin/oldrdist
++is used on Red Hat linux)
+ and that program is available at run time.
+ .PP
+ .I Rdist
+--- rdist-6.1.5/README.oldpath Tue Apr 13 15:14:07 1999
++++ rdist-6.1.5/README Tue Apr 13 15:15:42 1999
+@@ -65,12 +65,12 @@
+ The way the old rdist started a server rdist is to run "rdist
+ -Server".  If the new rdist is run with the "-Server" option, then it
+-will exec a copy of the old rdist (usually /usr/old/rdist or
+-/usr/ucb/oldrdist).  In this way, you get compatibility with hosts
++will exec a copy of the old rdist (the path /usr/bin/oldrdist in Red
++Hat linux).  In this way, you get compatibility with hosts
+ running the old rdist attempting to rdist to a machine running new
+ rdist.  If your host running new rdist wants to rdist to a host
+ running the old rdist, then it must run the old rdist program
+-(/usr/old/rdist or /usr/ucb/oldrdist).
++(/usr/bin/oldrdist in Red Hat linux).
+ The definition _PATH_OLDRDIST in "config/config.h" controls the
+ location of the old rdist.  If this is not defined, or the defined
This page took 0.052736 seconds and 4 git commands to generate.