jblumsch / fuse-ufs2

GNU General Public License v2.0
1 stars 1 forks source link

Fix return codes #9

Open jblumsch opened 8 years ago

jblumsch commented 8 years ago

The documentation of struct fuse_operations states that

instead of returning an error in errno, the operation should return the negated error value (-errno) directly".

fuse-ufs does not stick to this rule: Positive error codes are returned in some places, and plain -1 in others.

exit() is called where it shouldn't be.

jblumsch commented 8 years ago

6: op_access() eventually returned -1, but should return -EROFS ­– Done with ce38176ad667cc3950f3c4a2a5af7af2e55b0e0c.