Skip to content

use abspath, do not eliminating symlinks - #23757

Merged
jfindlay merged 1 commit into
saltstack:developfrom
clan:file_directory_require
May 15, 2015
Merged

jfindlay merged 1 commit into
saltstack:developfrom
clan:file_directory_require

Conversation

@clan

@clan clan commented May 15, 2015

Copy link
Copy Markdown
Contributor

realpath will eliminating symlinks, so following sls won't work as expected

/root/a:
  file.directory:
    - user: root
    - group: root
    - mode: 0755
    - clean: True
    - require:
      - file: /root/a/b

/root/a/b:
  file.symlink:
    - user: root
    - group: root
    - target: /etc

realpath will eliminating symlinks, so following sls won't work as expected

/root/a:
  file.directory:
    - user: root
    - group: root
    - mode: 0755
    - clean: True
    - require:
      - file: /root/a/b

/root/a/b:
  file.symlink:
    - user: root
    - group: root
    - target: /etc
@jfindlay jfindlay added Minor Change Tests-Passed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels May 15, 2015
@jfindlay

Copy link
Copy Markdown
Contributor

@clan, thanks for the fix. In the future, please feel free to submit fixes directly to the oldest supported release branch that applies, as the release branches are regularly merged forward, see https://docs.saltstack.com/en/latest/topics/development/contributing.html#which-salt-branch.

jfindlay added a commit that referenced this pull request May 15, 2015
use abspath, do not eliminating symlinks
@jfindlay
jfindlay merged commit d7ce64f into saltstack:develop May 15, 2015
@jfindlay

Copy link
Copy Markdown
Contributor

This change can go all the way back to 2014.7.

@rallytime rallytime added Bugfix - [Done] back-ported and removed bugfix-bckport will be be back-ported to an older release branch by creating a PR against that branch labels May 16, 2015
@clan
clan deleted the file_directory_require branch May 18, 2015 02:43
jfindlay added a commit that referenced this pull request May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants