summaryrefslogtreecommitdiff
path: root/.packit.yml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-25 19:50:47 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2021-02-02 23:16:38 +0000
commit3cdcbdd32f8deaf4fbfeaaa908e77917229c661a (patch)
treefca60e434f4c08c8a95b05d20152bc917a1ee1d0 /.packit.yml
parent23cfef7bb106784c1b25e154ff88b67b039927be (diff)
downloadsystemd-3cdcbdd32f8deaf4fbfeaaa908e77917229c661a.tar.gz
path-util: tighten path_extract_filename()
Let's tighten the logic behind path_extract_filename() a bit: first of all, refuse all cases of invalid paths with -EINVAL. More importantly though return a recognizable error when a valid path is specified that does not contain any filename. Specifically, "/" will now result in -EADDRNOTAVAIL. This changes API, but none of the existing callers care about the return value, hence the change should be fine.
Diffstat (limited to '.packit.yml')
0 files changed, 0 insertions, 0 deletions