commit | 2a16a5847a2811626a108f8cbd7606680647df86 | [log] [tgz] |
---|---|---|
author | Dmitriy Ivanov <dimitry@google.com> | Tue Mar 04 20:05:21 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Mar 04 20:05:22 2014 +0000 |
tree | 39b0882e5fb7b70c2f65f560839b2d1b4e8455dc | |
parent | 858d0dd1e529575181abd8de607e46f7b273cc9d [diff] | |
parent | 7c1fc0ed42609c6c44d6738e0d8ef1d4425a6758 [diff] |
Merge "fix: making lsof show devies and loaded .so file names correctly"
diff --git a/toolbox/lsof.c b/toolbox/lsof.c index 113c120..af321af 100644 --- a/toolbox/lsof.c +++ b/toolbox/lsof.c
@@ -113,7 +113,7 @@ if (!maps) goto out; - while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode, + while (fscanf(maps, "%*x-%*x %*s %zx %s %ld %s\n", &offset, device, &inode, file) == 4) { // We don't care about non-file maps if (inode == 0 || !strcmp(device, "00:00"))