The functions 'mkdir', 'mknod', 'mkdirat', 'mknodat' return 0 on success
and -1 on failure. The checker modeled these functions with a >= 0
return value on success which is changed to 0 only. This fix makes
ErrnoChecker work better for these functions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Note in the summary that this patch affects:
- mkdir, mkdirat
- mknod, mknodat
The checker modeled these functions with a >= 0 return value on success which is incorrect.
Technically, it was correct previously. Now it's not only correct but also precise ;)