freebsd-dev/cmd
Brian Behlendorf ae380cfa76 Realpath arg 2 must be a minimum of PATH_MAX
The realpath(3) function expects that when a buffer is passed
for the 'resolved_path' that it be at least PATH_MAX in length.
If it's not a buffer overflow may occur.

Therefore the passed buffer size is changed from MAXNAMELEN to
MAXPATHLEN.  We also take this opertunity to dynamically allocate
the buffer to keep it off the stack.

  warning: call to '__realpath_chk_warn' declared with attribute
  warning: second argument of realpath must be either NULL or at
  least PATH_MAX bytes long buffer [enabled by default]

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2012-10-04 13:19:10 -07:00
..
mount_zfs Add libnvpair to mount_zfs dependencies 2012-09-02 15:36:09 -07:00
vdev_id Remove autotools products 2012-08-27 11:47:44 -07:00
zdb Illumos #2088 zdb could use a reasonable manual page 2012-09-18 09:09:13 -07:00
zfs Illumos #2703: add mechanism to report ZFS send progress 2012-09-19 13:39:06 -07:00
zinject Remove autotools products 2012-08-27 11:47:44 -07:00
zpios Remove autotools products 2012-08-27 11:47:44 -07:00
zpool Illumos #1948: zpool list should show more detailed pool info 2012-09-19 13:39:05 -07:00
zpool_id Remove autotools products 2012-08-27 11:47:44 -07:00
zpool_layout Remove autotools products 2012-08-27 11:47:44 -07:00
zstreamdump Add zstreamdump .gitignore 2012-09-06 14:23:11 -07:00
ztest Realpath arg 2 must be a minimum of PATH_MAX 2012-10-04 13:19:10 -07:00
zvol_id Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Add zstreamdump(8) command to examine ZFS send streams. 2012-09-02 14:54:27 -07:00