git: sys/vfs/fuse: Fix confusing vop_write_dirent() retval test

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Apr 5 22:10:12 PDT 2019


commit 3c817f1ea603d010743de4357f46729ba30d25df
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Apr 6 05:59:45 2019 +0900

    sys/vfs/fuse: Fix confusing vop_write_dirent() retval test
    
    vop_write_dirent() has confusing return value (bug).
    
    When vop_write_dirent() returns non zero, *error is unchanged.
    OTOH when vop_write_dirent() returns zero, *error may be non zero.

Summary of changes:
 sys/vfs/fuse/fuse_vnops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3c817f1ea603d010743de4357f46729ba30d25df


-- 
DragonFly BSD source repository



More information about the Commits mailing list