slptool does not print correct version information
Brought to you by:
jcalcote
slptool prints wrong version intormation executing following command:
# slptool -v
slptool version = 2.0.0
libslp version = (null)
libslp configuration file = (null)
Attached is a patch to initialize the library and load the properties necessary to print the correct information. In my case the correct output after applying the patch is:
slptool version = 2.0.0
libslp version = 2.0.0
libslp configuration file = /etc/slp.conf
The version I used is from SVN trunk (28 January 2007), but the code concerned did not change since then.
Roland
initialize libslp before querying properties in case of version printing