DragonFly BSD
DragonFly submit List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [Patch] bin/cp sync with FreeBSD


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxx>
Date: Sun, 13 Feb 2005 19:12:05 -0800

On Thu, 3 Feb 2005 17:04:24 +0000
Sarunas Vancevicius <svan@xxxxxxxxxxxxxxx> wrote:

> Hi,
> 
> This patch[1] syncs with FreeBSD cp, in particular:
> 
> - pass -1 to setfile
> 
>  Rev: cp.c:1.49
> 
> - When -R is not specified, fail to copy the contents of dangling
>   symlinks instead of making a copy of the link itself (SUSv3). 
>   
>   Rev: cp.c:1.36
>   
> - Trailing slash fixes.
> 
>  Fix the case:
>  
>     cp file nonexistent/
> 
>  Which creates nonexistent as file while trailing slash clearly
>  indicates that nonexistent must be a directory.
>  
>  Also fix the case:
>  
>     cp file1 file2/
> 
>  which should produce an error.
> 
>  Rev: cp.c:1.34
> 
> Sarunas
> 
> [1] http://www.redbrick.dcu.ie/~svan/dfly/cp.c.diff

Committed, thanks!

-Chris



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]