3. Special logic for file-based resources

When comparing a resource that represents an absolute filename (the resource's name begins with a /), LPMtool is smart enough to recognize when seemingly different absolute filenames really refer to the same file, because of an intervening symlink.

Consider this: /usr/lib/foo is a soft link to /usr/lib/bar. In this case, /usr/lib/foo/foobar and /usr/lib/bar/foobar is really the same file. LPMtool is smart enough to recognize this, and compare the resources accordingly. LPMtool does this extra checking only if the last component of each filename is the same. If the last component of both files is different, they can't possibly refer to the same file. Otherwise, the following extra checking takes place: