[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/creduce] 5fd723: Handle cases in which `bindir' references a symlin...



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/creduce
  Commit: 5fd7232a6d9f930905383bd8714677a317fdae4a
      https://github.com/csmith-project/creduce/commit/5fd7232a6d9f930905383bd8714677a317fdae4a
  Author: Eric Eide <eeide@cs.utah.edu>
  Date:   2015-09-25 (Fri, 25 Sep 2015)

  Changed paths:
    M creduce/pass_clang.pm
    M creduce/pass_clang_binsrch.pm
    M creduce/pass_clex.pm

  Log Message:
  -----------
  Handle cases in which `bindir' references a symlink.

When we check if the `creduce' script is an installed copy, we obtain
the realpath of directory containing the script.

Previously we compared that realpath to the configured `bindir'.  That
test doesn't work right if `bindir' traverses a symbolic link.  Fix the
test by comparing to the realpath of `bindir'.

Thanks to Christian Schreiner for discovering this bug and submitting a
patch.  This commit is a tweaked version of Christian's patch.