看板 DFBSD_submit 關於我們 聯絡資訊
On Thu, 3 Feb 2005 17:04:24 +0000 Sarunas Vancevicius <svan@redbrick.dcu.ie> 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