]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
dokan: handle std::stoul exceptions 51281/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 28 Apr 2023 07:44:18 +0000 (07:44 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 28 Apr 2023 09:27:06 +0000 (09:27 +0000)
commit6669aafa173f750e02f43c1ef49d09ca0a963b91
treede8ccd3da96334678f08d2b2ac692329c1a73008
parent11b3cc2e025b36904a3f36622356db375105c2bf
dokan: handle std::stoul exceptions

We're using std::stoul to parse cli args, however we aren't
catching the exceptions.

This change will handle the exceptions and log the according
error message. For consistency, we'll use the std conversion
functions throughout ceph-dokan.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/dokan/options.cc