Skip to content
Commit 87bc730c authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Jan Kara
Browse files

udf: fix default mode and dmode options handling



On x86 (and several other archs) mode_t is defined as "unsigned short"
and comparing unsigned shorts to negative ints is broken (because short
is promoted to int and then compared). Fix it.

Reported-and-tested-by: default avatarLaurent Riffard <laurent.riffard@free.fr>
Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent e650b94a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment