Closed pehrsoderman closed 5 years ago
Previously, the validation for the quota would pass the full quota string (i.e. 4096,4096) to the validation function as the "block_quota" variable. This fix passes the substring before the ',' as block_quota variable instead.
Fixes #67
Before:
$ sudo ./isolate --quota=40960,40960 --init Invalid numeric parameter: 40960,40960
After:
$ sudo ./isolate --quota=40960,40960 --init /var/local/lib/isolate/0
Thanks. At last I chose a slightly different solution, because I did not want to use unchecked strndup().
Previously, the validation for the quota would pass the full quota string (i.e. 4096,4096) to the validation function as the "block_quota" variable. This fix passes the substring before the ',' as block_quota variable instead.
Fixes #67
Before:
After: