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/11/usr.bin/kdump/kdump.c
Directory Properties:
  stable/11/   (props changed)

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

Modified: stable/11/usr.bin/kdump/kdump.c
==============================================================================
--- stable/11/usr.bin/kdump/kdump.c     Sat Jan  7 18:54:57 2017        
(r311653)
+++ stable/11/usr.bin/kdump/kdump.c     Sat Jan  7 19:16:53 2017        
(r311654)
@@ -1341,6 +1341,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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to