Logan, Davis help Tar Heels beat rival Wolfpack 27-19 for 1st win in Raleigh since 2005

North Carolina State head coach Dave Doeren, left, speaks with North Carolina head coach Larry Fedora prior to the start of their NCAA college football game in Raleigh , N.C., Saturday, Nov. 2, 2013. (AP Photo/Karl B DeBlaker) (The Associated Press)

North Carolina's Marquise Williams (12) takes a hit from North Carolina State's Robert Caldwell (48) and Monty Nelson (94) as North Carolina's A.J. Blue (15) falls to the turf during the first half of an NCAA college football game in Raleigh , N.C., Saturday, Nov. 2, 2013. (AP Photo/Karl B DeBlaker) (The Associated Press)

Freshman T.J. Logan ran for a 14-yard touchdown with 11:19 left to help North Carolina beat rival North Carolina State 27-19 on Saturday.

Quinshad Davis had two touchdown catches for the Tar Heels (3-5, 2-3 Atlantic Coast Conference), who won in Carter-Finley Stadium for the first time since 2005. Davis' second score came off a 59-yard pass from Ryan Switzer on a trick play, putting UNC ahead for good midway through the second.

Logan's score gave the Tar Heels a cushion that ultimately held up, with A.J. Blue running for a key first down with about 2½ minutes left to help UNC drain the clock on the Wolfpack (3-5, 0-5).

Brandon Mitchell ran for 105 yards and a touchdown to become the first Wolfpack quarterback to crack the 100-yard mark in 37 years, but the Wolfpack couldn't give coach Dave Doeren a winner in his rivalry debut.