core/exec-credential: emit correct error on invalid cred source
authorMike Yuan <me@yhndnzj.com>
Wed, 31 Jul 2024 21:38:25 +0000 (23:38 +0200)
committerMike Yuan <me@yhndnzj.com>
Sun, 4 Aug 2024 04:51:28 +0000 (06:51 +0200)
commit4c00458e99df7c5e0a0b1e62dcaab8c90f6e4ed2
tree40659bc481d6881ea82bf7c5e0bb7fb60273d9a4
parent85b265c96403a148be5207b7da17f9cc1867e04c
core/exec-credential: emit correct error on invalid cred source

The (!source && !search_path) branch is effectively not reached,
but rather confusing. Let's return -EINVAL properly.
src/core/exec-credential.c