Timestamps for time modifiers throughing a segmentation fault.
smbtaquery -M pgsql -N smbtad -S holger -H seizewell -I 0 -d 10 -q 'global from 21-05-2011 to 25-05-2011, usage r;'
smbtaquery -M pgsql -N smbtad -S holger -H seizewell -I 0 -d 10 -q 'global since 25-05-2011, usage r;'
Shortcuts like yesterday and today are working.
segfaulting on this input is a bug
If you use a timestamp as input, please provide a full timestamp including hh:mm:ss.
It should however interpret also input like this.
Then, this is wrong in the documentation. I'll have a look at it by myself.
Any functions that are called on objects can make use of time modifiers, that allow to specifiy a time range the function shall work on. The supported keywords must be used on objects and are called: FROM - TO and SINCE.
Example for FROM-TO:
global from 10-10-2010 to today, total rw;
Example for SINCE:
user holger since yesterday, total rw;
The segfault is fixed with commit
But it still doesn't parse the time, because of the whitespace.
This needs functional qouting support in the interpreter which I'll look at tonight. And yes, this is a critical bug.
should fix this, it works for me with "since",
Benni could you please check from..to ?
Quoting should be done with '
That means a -q request on smbtaquery can be done like this:
-q "global, total rw;"
or like this:
-q 'global, total rw;'
and... if the user needs to quote:
-q "global since '2011-23-23 00:00:00', total rw;"
Fixed with commit