[issue1701] mkdir / returns EPERM instead of EEXIST (related

看板DFBSD_bugs作者時間16年前 (2010/03/24 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/8 (看更多)
Stathis Kamperis <ekamperi@gmail.com> added the comment: Hey all. First, EPERM shouldn't be returned at all; instead EACCES should. Second, POSIX says that the order of error detection is undefined. So, we may choose to check first the permissions and then if directory exists, or the other way around. Both are valid. My 2 cents. _____________________________________________________ DragonFly issue tracker <bugs@lists.dragonflybsd.org> <http://bugs.dragonflybsd.org/issue1701> _____________________________________________________
文章代碼(AID): #1BgKzrqZ (DFBSD_bugs)
討論串 (同標題文章)
文章代碼(AID): #1BgKzrqZ (DFBSD_bugs)