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

pake_chmod does double up directory #27

Open
Woellchen opened this issue Aug 30, 2012 · 1 comment
Open

pake_chmod does double up directory #27

Woellchen opened this issue Aug 30, 2012 · 1 comment

Comments

@Woellchen
Copy link

when calling pake_chmod like pake_chmod('', 'cache/', 0777) then it will fail
output:

chmod 777 cache/cache/
Warning: chmod(): file or directory not found in /usr/share/php/pake/pakeFunction.php:351

as you see it tries to chmod cache/cache/ instead of cache/ which will result phps chmod call to fail

we have discovered that it must relate to the following commit: d600cb1
d600cb1

@indeyets
Copy link
Owner

@Woellchen looks like it is a bit of an edge-case. what exactly do you expect to "chmod" by using this code? directory itself? I, myself, never written construct like this :)

I need to know, to write a test-case and fix it reliably.

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

2 participants