lsof/lsof_4.78C-inode.patch
kzak ab6d748549 - fix #280651 - lsof prints entries in multiple lines when SElinux is
disabled
- fix #243976 - mmap'd files with large inode numbers confuse lsof
2007-10-02 22:52:57 +00:00

13 lines
505 B
Diff

diff -up lsof_4.78C-rh/dialects/linux/dproc.c.kzak lsof_4.78C-rh/dialects/linux/dproc.c
--- lsof_4.78C-rh/dialects/linux/dproc.c.kzak 2007-10-02 14:30:25.000000000 +0200
+++ lsof_4.78C-rh/dialects/linux/dproc.c 2007-10-02 14:31:46.000000000 +0200
@@ -790,7 +790,7 @@ process_proc_map(p, s, ss)
dev = (dev_t)makedev((int)maj, (int)min);
if (!fp[5] || !*fp[5])
continue;
- inode = (INODETYPE)atoi(fp[5]);
+ inode = (INODETYPE)atoll(fp[5]);
if (!dev && !inode)
continue;
/*