Skip to content

functions: canonicalize symbolic link path

Kristian Klausen requested to merge github/fork/eworm-de/canonicalize into master

Created by: eworm-de

Deprectating a hook 'old-hook' and replacing it with new hook 'new-hook' required the symlink to point to an absolute target:

/usr/lib/initcpio/install/old-hook -> /usr/lib/initcpio/install/new-hook

Let's canonicalize the path read by readlink, this allows to link relative path in symbolic link:

/usr/lib/initcpio/install/old-hook -> new-hook

Merge request reports