]> git.sur5r.net Git - bacula/bacula/commit
Fix bug #1959 input validation on delete of jobs.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 29 Nov 2012 17:40:46 +0000 (18:40 +0100)
committerMarco van Wieringen <mvw@planets.elm.net>
Thu, 29 Nov 2012 17:40:46 +0000 (18:40 +0100)
commit613a8e66be6e504fd032e39f3476a1b58cdc5d68
treeba9fc95a2ce49e376c566e526027c6485fe354da
parent4ee36079993d5c7ea0c268004110a3f59a01624f
Fix bug #1959 input validation on delete of jobs.

The current code doesn't check on delete of a Job if the given JobId is
a number. Things changed are:

- Use str_to_uint64 casted to uint32_t to match JobId_t
- Validate all tokens parsed to be a valid number.
- Check the range to be increasing.
- Ask for confirmation when the range is more then 25 jobs.
- Reindented some wrongly indented code (2 vs 3 spaces)
bacula/src/dird/ua_cmds.c