Subject: | -g option can cause "Insecure dependency in open while running setgid" at line 134 |
This only happens under certain circumstances. We managed to get this error when we did the following:
--CVSROOT/commitinfo has the following line:
DEFAULT $CVSROOT/CVSROOT/activitymail -Q -lg
--CVSROOT/loginfo has the following line:
DEFAULT $CVSROOT/CVSROOT/activitymail -Q -cdagf %{sVv} -t user@example.com
1. checkout a module as root, edit files, and cvs update to make sure the files merge
2. su <user>
3. cvs commit the edited files
When that procedure is followed, the pre-commit check fails saying:
prompt$ cvs commit
cvs commit: Examining .
Insecure dependency in open while running setgid at /usr/local/cvs-rep/root/CVSROOT/activitymail line 134.
cvs commit: Pre-commit check failed
cvs [commit aborted]: correct above errors first!
Now I know it is 'evil' to switch users, but we must, since only the root user may edit the CVSROOT, and root cannot commit to cvs... Its a strange setup, but we have to live w/ it.