Closed stdweird closed 6 years ago
@ttyS4 i haven't tested this, and i still need to add unittests
tested without chroot @ned21 @ttyS4 does MS use chroot?
No, we dont use the chroot feature (just confirmed with someone here).
As far as I see you use the internal directory function here. One thing which made me not use it is a confusion: if ncm-ncd is called in noaction mode would it still create the directory. I think it should create the directory regardless.
@ttyS4 it will still do it but i'll check (and even if it didn't you can pass keeps_state => 1
option to ignore noaction for that specific call
as expected it is created (the noaction is only set when handling components, th etempdir is created before that
[DEBUG] directory: (tempdir) noaction is false
[VERB] Created temporary directory with tempdir: /tmp/ncm-ncd-XJ9HrT
[DEBUG] Created temp directory /tmp/ncm-ncd-XJ9HrT
Sorry for making you wait long on this.
Other than making it fail if we can't enter tmpdir this looks good to me. My quick testing shows no errors.
Restoring chdir after each module exec seems unnecessary for me as we chdir before each module execution still probably does not hurt.
@ttyS4 addressed your remarks, unittests pass (but not yet tested)
Another quick check (without chroot) shows no errors.
@stdweird which PR does this replace? Right now it references itself...
On January 15, 2018 5:18:35 PM GMT+01:00, James Adams notifications@github.com wrote:
@stdweird which PR does this replace? Right now it references itself...
-- Csillag Tamás mobilról
Thanks!
@jrha @ttyS4 sorry, yes this replaces #121
@ttyS4 my concern about including this in the 17.12 release is down to the combination of how late the release is and how little I understand the potential impacts of this change.
@jrha and it didn't spew anything in current master version?
Probably did, not complaining.
I've tested this enough to make myself happier, so in it goes...
Replaces #121