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

CopyFile creates missing target directories with no x-bits #214

Closed
0xDEC0DE opened this issue Jun 19, 2024 · 1 comment
Closed

CopyFile creates missing target directories with no x-bits #214

0xDEC0DE opened this issue Jun 19, 2024 · 1 comment

Comments

@0xDEC0DE
Copy link
Contributor

Steps to reproduce

Use this Giltfile.yaml:

---
giltDir: ~/.gilt/clone
repositories:
  - git: https://github.com/lorin/openstack-ansible-modules.git
    version: 2677cc3
    sources:
      - src: neutron_router
        dstFile: /tmp/library/neutron_router.py

Run gilt overlay

Expected result

It creates a /tmp/library/neutron_router.py file

Actual behavior

2:45PM ERR error overlaying repositories err="open /tmp/library/neutron_router.py: permission denied"

Miscellany

It is attempting to create the missing target directory with the same permissions as the destination file. the EXACT SAME permissions as the destination file:

$ ls -ld /tmp/library
drw-r--r--  2 nisimond  wheel  64 Jun 19 14:45 /tmp/library/
0xDEC0DE pushed a commit to 0xDEC0DE/gilt that referenced this issue Jun 19, 2024
Traversal bits (aka, x-bits) on directories are occasionally useful.
Make sure they are set when creating target dirs.

Fixes: Issue retr0h#214
retr0h pushed a commit that referenced this issue Jun 20, 2024
Traversal bits (aka, x-bits) on directories are occasionally useful.
Make sure they are set when creating target dirs.

Fixes: Issue #214
@0xDEC0DE
Copy link
Contributor Author

Fixed in #215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant