Skip to content

Commit

Permalink
Fix possible use-before-assign bug
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh committed Jul 27, 2023
1 parent a97e6c9 commit db87083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pbench/server/cache_manager.py
Expand Up @@ -150,8 +150,8 @@ def make_cache_object(dir_path: Path, path: Path) -> CacheObject:

if path.is_symlink():
ftype = CacheType.SYMLINK
link_path = path.readlink()
try:
link_path = path.readlink()
if link_path.is_absolute():
raise ValueError("symlink path is absolute")
r_path = path.resolve(strict=True)
Expand Down

0 comments on commit db87083

Please sign in to comment.