NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/46341: Use the right enum in call of chfs_filldir.
>Number: 46341
>Category: kern
>Synopsis: Use the right enum in call of chfs_filldir.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 17 07:25:00 +0000 2012
>Originator: Henning Petersen
>Release:
>Organization:
>Environment:
>Description:
Use the right enum in call of chfs_filldir.
Found by clang.
>How-To-Repeat:
>Fix:
diff -r1.4 chfs_vnops.c
1365c1365
< error = chfs_filldir(uio, ip->ino, ".", 1, VDIR);
---
> error = chfs_filldir(uio, ip->ino, ".", 1, CHT_DIR);
1382c1382
< error = chfs_filldir(uio, chvc->pvno, "..", 2, VDIR);
---
> error = chfs_filldir(uio, chvc->pvno, "..", 2, CHT_DIR);
Home |
Main Index |
Thread Index |
Old Index