Re: [Patch] bin/cp sync with FreeBSD

看板DFBSD_submit作者時間21年前 (2005/02/18 21:37), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
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
文章代碼(AID): #125U-Q00 (DFBSD_submit)
文章代碼(AID): #125U-Q00 (DFBSD_submit)