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

Merged
merged 1 commit into from Jan 25, 2014

Conversation

2 participants
@skreuzer
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

This comment has been minimized.

Show comment
Hide comment
@tzz

tzz Jan 25, 2014

Contributor

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().

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

Merge pull request #100 from skreuzer/realpath
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

This comment has been minimized.

Show comment
Hide comment
@tzz

tzz Jan 25, 2014

Contributor

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

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