Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2009 14:41:44 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_descrip.c kern_sysctl.c
Message-ID:  <200905151442.n4FEg2O4021303@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-05-15 14:41:44 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c kern_sysctl.c 
  Log:
  SVN rev 192144 on 2009-05-15 14:41:44Z by kib
  
  Revert r192094. The revision caused problems for sysctl(3) consumers
  that expect that oldlen is filled with required buffer length even when
  supplied buffer is too short and returned error is ENOMEM.
  
  Redo the fix for kern.proc.filedesc, by reverting the req->oldidx when
  remaining buffer space is too short for the current kinfo_file structure.
  Also, only ignore ENOMEM. We have to convert ENOMEM to no error condition
  to keep existing interface for the sysctl, though.
  
  Reported by:    ed, Florian Smeets <flo kasimir com>
  Tested by:      pho
  
  Revision  Changes    Path
  1.350     +15 -2     src/sys/kern/kern_descrip.c
  1.194     +3 -5      src/sys/kern/kern_sysctl.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905151442.n4FEg2O4021303>