patch to source4/lib/wmi/tools/wmic.c
dmitry at karasik.eu.org
Mon Jan 26 10:49:57 GMT 2009
I'm using wmic as a standalone program, and I need output of bin/wmic to be defined
with a more strict syntax, so that data that reported by the tool do not clash
with metadata characters (|,()) etc. Please find attached the patch that
changes the wmic output so that a) such characters are escaped b) null values
are reported as "(null)" string instead of "NULL", so a literal "NULL" that WMI
may eventually report won't be treated as a null value (if WMI reports "(null)"
then the output will be properly quoted as "\(null\)").
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3655 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090126/8f7b4125/patch.bin
More information about the samba-technical