Re: cvs commit: src/bin/ln ln.c

看板DFBSD_commit作者時間21年前 (2005/03/02 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/6 (看更多)
:liamfoy 2005/02/28 11:26:21 PST : :DragonFly src repository : : Modified files: : bin/ln ln.c : Log: : - Remove an unnecessary call to stat(). We can just use lstat before : checking the file. This saves calling both stat() and lstat(). : : Revision Changes Path : 1.6 +6 -5 src/bin/ln/ln.c : : :http://www.dragonflybsd.org/cvsweb/src/bin/ln/ln.c.diff?r1=1.5&r2=1.6&f=u That changes the functionality a bit. What if the sourcedir path is a symlinking pointing to a directory rather then the directory itself? That is perfectly acceptable but this change will turn it into an error from what I can tell. -Matt Matthew Dillon <dillon@backplane.com>
文章代碼(AID): #129Ce600 (DFBSD_commit)
文章代碼(AID): #129Ce600 (DFBSD_commit)