Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add path to realpath for debian, redhat and freebsd #100

Merged
merged 1 commit into from Jan 25, 2014

Conversation

@skreuzer
Copy link
Contributor

skreuzer commented Jan 25, 2014

I would like to add realpath to paths.path to work around an issue I have in 3.5.3 where symlinks that do not have the same permissions are not followed. This will make calling the realpath binary more generic across platforms

vars:
    "realpath_src" string => execresult("$(paths.path[realpath]) /src", "noshell");
@tzz
Copy link
Contributor

tzz commented Jan 25, 2014

This is useful, but it would be even nicer if the built-in filestat() function could resolve the realpath for you.

Recently @jimis added some realpath code in core.git:cf-serverd but I don't know how easy it will be to expose it to filestat().

tzz added a commit that referenced this pull request Jan 25, 2014
Add path to realpath for debian, redhat and freebsd
@tzz tzz merged commit 43201ab into cfengine:master Jan 25, 2014
@skreuzer skreuzer deleted the skreuzer:realpath branch Jan 25, 2014
@tzz
Copy link
Contributor

tzz commented Jan 25, 2014

See https://cfengine.com/dev/issues/4145 for the filestat() feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.