cvs commit: src/sbin/geom/core geom.c

Marcel Moolenaar marcel at FreeBSD.org
Thu May 17 15:34:52 UTC 2007


marcel      2007-05-17 15:34:51 UTC

  FreeBSD src repository

  Modified files:
    sbin/geom/core       geom.c 
  Log:
  Fix the construction of the gctl_req that got broken by my
  previous commit and that introduced optional parameters.
  Existing classes (like geli(8)) use empty strings by default
  and expect the parameter to be passed to the kernel as such.
  Also, the default value of a string argument can be NULL.
  Fix both cases by making the optional parameter conditional
  upon gc_argname being set and making sure to test for NULL
  before dereferencing the pointer.
  
  Reported by: brueffer@
  
  Revision  Changes    Path
  1.30      +3 -1      src/sbin/geom/core/geom.c


More information about the cvs-src mailing list