-
Notifications
You must be signed in to change notification settings - Fork 903
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
cpack hangs on security related issue #160
Comments
This is a permissions error caused by me.
|
Please reopen. No reason this should happen on pack and push. Ugh. Thanks On Tuesday, March 10, 2015, dtgm notifications@github.com wrote:
Rob http://devlicio.us/blogs/rob_reynolds |
Negative. I'll see if I can duplicate the issue before reopening. I believe my particular issue was I was editing files with an improperly setup cygwin install. Editing files via cygwin were modifying permissions to an invalid SID. I haven't had time to verify this yet, but running ketarin with admin privileges skirts the problem. |
On reflection I'll reopen since choco should not hang if inadequate perms. This is not necessarily an issue between 0.9.9-rc5 and 0.9.9.1. What tipped me off was If I remember correctly, procmon showed choco.exe was continually trying to read a file (maybe config) it did not have perms to read. |
I still had procmon open.
It would try continually closing and writing to same file without delay. After renaming |
For the related 2nd issue, I received the error in log Perhaps returning a simple "Could not read file FOO" would work better. |
Do not issue an administrator warning with a pause unless the command being run requests that it may need administrative rights.
This should be fixed in 0.9.9.5. Thanks for reporting! |
Upgraded from 0.9.9-rc5 to 0.9.9.1
Has any change been made between the above versions that may cause cpack to hang when called from a ketarin c# script with cmd.exe? Has the format for arguments changed?
The nuspec file contains:
It appears it cannot find the "tools" directory despite using
proc.WorkingDirectory
. It looks like cpack now requires explicitly declaring the location of the NUSPEC file,choco pack [<path to nuspec>] [<options/switches>]
, so I tried:But this also hangs. With ProcessExplorer It looks like
C:\ProgramData\chocolatey\bin\choco.exe
(version 0.5.1.0) spawns child-processC:\ProgramData\chocolatey\choco.exe
(version 0.9.9.2)Note, just in case I also tried:
However, if I change the cmd.exe arguments to
proc.Arguments = "/c "+"mkdir testdir
, then "testdir" is created just fine.EDIT: I also tried updating to 0.9.9.2, same issue.
The text was updated successfully, but these errors were encountered: