Screwed up as it sounds, in FAA land, this is legal. The FAA Chief Counsel's office is full of letters trying to explain the difference between "logging PIC" time and "being PIC".
This one talks about your exact situation.
http://www.faa.gov/about/office_org/...rpretation.pdf