From charnier@xp11.frmug.org  Mon Mar 31 13:08:23 1997
Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA10492
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 31 Mar 1997 13:08:19 -0800 (PST)
Received: (from uucp@localhost)
	by frmug.org (8.8.5/8.8.5/frmug-2.0) with UUCP id XAA16162
	for FreeBSD-gnats-submit@freebsd.org; Mon, 31 Mar 1997 23:08:08 +0200 (MET DST)
Received: (from charnier@localhost)
	by xp11.frmug.org (8.8.5/8.8.5/xp11-uucp-1.1) id MAA12174;
	Mon, 31 Mar 1997 12:11:58 +0200 (CEST)
Message-Id: <199703311011.MAA12174@xp11.frmug.org>
Date: Mon, 31 Mar 1997 12:11:58 +0200 (CEST)
From: Philippe Charnier <charnier@xp11.frmug.org>
Reply-To: charnier@xp11.frmug.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: rdist is broken
X-Send-Pr-Version: 3.2

>Number:         3158
>Category:       bin
>Synopsis:       seg faults and cannot update links using rdist
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 13:10:01 PST 1997
>Closed-Date:    Sun Apr 19 23:20:48 PDT 1998
>Last-Modified:  Sun Apr 19 23:24:46 PDT 1998
>Originator:     Philippe Charnier
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

 CTM_BEGIN 2.0 cvs-cur 3168 19970328140916Z

 /A and /B are partitions on two different disks

>Description:

I am trying to duplicate a directory using rdist:

file /root/.rhosts contains 'localhost root' (without the quotes)
rdist -c /A localhost:/B
/A/bin/emacs is a link to /A/bin/emacs-19.34

I get:

updating host localhost
installing: /A/bin/emacs
rdist: xp11.frmug.org:can't link /B/bin/emacs to /A/bin/emacs-19.34
	shouldn't this be /B/bin/emacs-19.34?    ^^^^^^^^^^^^^^^^^^

And after each run:

Segmentation fault

I'm not able to get a core dump even with 'coredumpsize    unlimited'.

>How-To-Repeat:

	

>Fix:
	
We maybe should import rdist-6.1.3 from usc.edu which is working fine is this
area. I just did:
  cp mf.freebsd2 mf.freebsd3
  cp os-freebsd2.h os-freebsd3.h

then update some paths then make.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: charnier 
State-Changed-When: Sun Apr 19 23:20:48 PDT 1998 
State-Changed-Why:  
Problems solved: do not free memory and reuse it again, correctly translate 
filename using dest directory as prefix. 
>Unformatted:
