lib: modify string conversion wrapper to handle invalid strings
authorSwen Schillig <swen@linux.ibm.com>
Wed, 6 Mar 2019 08:03:27 +0000 (09:03 +0100)
committerChristof Schmitt <cs@samba.org>
Thu, 11 Apr 2019 22:29:25 +0000 (22:29 +0000)
commitda80b6d2a14c58a7fc618bcb7750bbc4ea8cb95a
tree61c3adc38f07b122d18f59555e9cd3ada4f19606
parent74091115f7564976c8fc7530fc2cb76c6bac9ce1
lib: modify string conversion wrapper to handle invalid strings

The standard string conversion routines convert a "non-number string"
to zero and do not flag an error.
This is changed now by returning EINVAL if no conversion occured.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
lib/util/util.c