Re: Panic using rsync to msdosfs filesystem

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Thu, 03 Jul 2008 13:30:24 -0700
Kostik Belousov wrote:

> Looks like this is the first casuality of the -fstack-protector.

D'oh! I seem to have a talent for such things. :-/

> Try this:
> 
> diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
> index 8a1484f..fe673e0 100644
> --- a/sys/fs/msdosfs/msdosfs_vnops.c
> +++ b/sys/fs/msdosfs/msdosfs_vnops.c
> _at__at_ -982,7 +982,7 _at__at_ msdosfs_rename(ap)
>  	struct componentname *tcnp = ap->a_tcnp;
>  	struct componentname *fcnp = ap->a_fcnp;
>  	struct denode *ip, *xp, *dp, *zp;
> -	u_char toname[11], oldname[11];
> +	u_char toname[12], oldname[11];
>  	u_long from_diroffset, to_diroffset;
>  	u_char to_count;
>  	int doingdirectory = 0, newparent = 0;

So far so good! I managed to complete my rsync run with that patch in, 
and now I'm churning the disk with other stuff to make sure. So far so 
good!

Thanks for getting on this one so fast.

Doug

-- 

     This .signature sanitized for your protection
Received on Thu Jul 03 2008 - 18:30:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:32 UTC