Commit f25f9d57 authored by Andrei Vagin's avatar Andrei Vagin

test/file_lock01: don't limit a maximum field width for device numbers

Invalid lock info: lock: 1: FLOCK  ADVISORY  READ  61 103:00:1188168 0 EOF
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent eccdf07a
...@@ -109,7 +109,7 @@ static int check_file_lock(int fd, char *expected_type, ...@@ -109,7 +109,7 @@ static int check_file_lock(int fd, char *expected_type,
memset(fl_type, 0, sizeof(fl_type)); memset(fl_type, 0, sizeof(fl_type));
memset(fl_option, 0, sizeof(fl_option)); memset(fl_option, 0, sizeof(fl_option));
num = sscanf(buf, "%*s %*d:%s %s %s %d %02x:%02x:%ld %*d %*s", num = sscanf(buf, "%*s %*d:%s %s %s %d %x:%x:%ld %*d %*s",
fl_flag, fl_type, fl_option, &fl_owner, fl_flag, fl_type, fl_option, &fl_owner,
&maj, &min, &i_no); &maj, &min, &i_no);
if (num < 7) { if (num < 7) {
......
Markdown is supported
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