[ https://issues.apache.org/jira/browse/TS-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-165: ----------------------------- Attachment: TS-165.diff To preserve semantics of the existing functions, and not change the behaviour of the code (the pattern proposed is appropriate for setuid binaries, with the 's' bit set, as far as I can tell), I'd like to propose something like the attached patch, which is a "merge" of George's and my proposals. This eliminates the need for a "static" global, and also removes the pattern for setuid binaries (I think that is unnecessary). Thoughts? > Config files (records.config at least) can get wrong ownership > -------------------------------------------------------------- > > Key: TS-165 > URL: https://issues.apache.org/jira/browse/TS-165 > Project: Traffic Server > Issue Type: Bug > Components: Config > Reporter: Leif Hedstrom > Assignee: Leif Hedstrom > Priority: Critical > Fix For: 2.0.0a > > Attachments: 0001-TS165_patch1.diff.patch, TS-165.diff > > > With the following steps, I get records.config to become owned by root, when > it should stay owned by nobody: > (04:43:38 PM) zwoop: Ok, so this reproduces it every time on my fedora box, > gonna try it on ubuntu next > (04:44:41 PM) zwoop: This is what I did > (04:44:41 PM) zwoop: 1) rm -rf local > (04:44:41 PM) zwoop: 2) sudo gmake install > (04:44:41 PM) zwoop: 3) emacs local/etc/trafficserver/records.config > (04:44:41 PM) zwoop: change port from 8080 to 80, and change eth0 to > eth1 (I have to do the later, or it'll fail) > (04:44:41 PM) zwoop: 4) local/bin/trafficserver start > (04:44:41 PM) zwoop: 5) Wait 10-20 seconds (at least, maybe longer) > (04:44:41 PM) zwoop: 6) ls -lrt local/etc/trafficserver -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.