cvs commit: src/sbin/ffsinfo ffsinfo.c
    Robert Watson 
    rwatson at FreeBSD.org
       
    Mon Jan  3 10:59:05 PST 2005
    
    
  
rwatson     2005-01-03 18:59:04 UTC
  FreeBSD src repository
  Modified files:
    sbin/ffsinfo         ffsinfo.c 
  Log:
  The ffsinfo utility uses atol() to parse numeric values out of optarg
  strings.  This isn't necessarily a bug, but it can be slightly inconvenient,
  because atol() doesn't know how to parse hexadecimal or octal numbers and at
  least one of the options of ffsinfo(8) would be easier to use if it did.
  
  Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.:
  
  orion:/a/freebsd/src/sbin/ffsinfo# ./ffsinfo -l 0x3ff /
  
  PR:             73110
  Submitted by:   keramida
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.8       +10 -3     src/sbin/ffsinfo/ffsinfo.c
    
    
More information about the cvs-src
mailing list