svn commit: r311654 - in stable: 10/usr.bin/kdump 11/usr.bin/kdump

John Baldwin jhb at FreeBSD.org
Sat Jan 7 19:16:55 UTC 2017


Author: jhb
Date: Sat Jan  7 19:16:53 2017
New Revision: 311654
URL: https://svnweb.freebsd.org/changeset/base/311654

Log:
  MFC 306563: Decode arguments to truncate and ftruncate.
  
  In particular, decode the off_t argument as a 64-bit argument to fix
  decoding for 32-bit processes.

Modified:
  stable/10/usr.bin/kdump/kdump.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/usr.bin/kdump/kdump.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/10/usr.bin/kdump/kdump.c
==============================================================================
--- stable/10/usr.bin/kdump/kdump.c	Sat Jan  7 18:54:57 2017	(r311653)
+++ stable/10/usr.bin/kdump/kdump.c	Sat Jan  7 19:16:53 2017	(r311654)
@@ -1252,6 +1252,12 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
 				}
 				ip++;
 				narg--;
+				break;
+			case SYS_ftruncate:
+			case SYS_truncate:
+				print_number(ip, narg, c);
+				print_number64(first, ip, narg, c);
+				break;
 			}
 		}
 		while (narg > 0) {


More information about the svn-src-stable-10 mailing list