diff --git a/linux-user/strace.c b/linux-user/strace.c index ef5eed943250339023ee3c1a5b9aad638d2e20e3..c9d252719a9a2a5821f33daa2d087d305989b024 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1507,6 +1507,11 @@ print_file_mode(abi_long mode, int last) const char *sep = ""; const struct flags *m; + if (mode == 0) { + qemu_log("000%s", get_comma(last)); + return; + } + for (m = &mode_flags[0]; m->f_string != NULL; m++) { if ((m->f_value & mode) == m->f_value) { qemu_log("%s%s", m->f_string, sep);