cvs commit: src/sbin/mount_msdosfs mount_msdosfs.c

Tai-hwa Liang avatar at
Fri Nov 25 19:55:16 GMT 2005

avatar      2005-11-25 19:55:14 UTC

  FreeBSD src repository

  Modified files:
    sbin/mount_msdosfs   mount_msdosfs.c 
  It turns out that set_charset() invokes build_iovec_argf() which modifies
  iov address internally through realloc(3).  However, since the function
  parameter wasn't designed to allow the modified iov being passed back to
  the caller, we ended up feeding iov with several corrupted entries(this
  depends on how many arguments were pushed into iovec before set_charset())
  to nmount(2).
  This commit fixes this regression introduced in rev1.37 such that
  mount_msdosfs(8) with code page conversion option(-W,-D) enabled works again.
  Reviewed by:    rodrigc
  Revision  Changes    Path
  1.40      +6 -6      src/sbin/mount_msdosfs/mount_msdosfs.c

More information about the cvs-src mailing list