]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fileargs: fix double caching of the same file
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Wed, 7 Apr 2021 19:12:52 +0000 (21:12 +0200)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Wed, 7 Apr 2021 19:16:37 +0000 (21:16 +0200)
commit2b1d0c0087a907fe9944b96c6313711865f9674a
tree36b90601ac10a10bc5da6012eb50c0d5fad41f46
parent5a8d32b53b919d82d6a3aa9f155bd2a00fb51dc2
fileargs: fix double caching of the same file

In situations when the current file name wasn't the first element on
the list we were cleaning the current name too early.
This might cause us to pre-cache the same file twice.
lib/libcasper/services/cap_fileargs/cap_fileargs.c