Lincoln dumped York out of the LDV Vans Trophy with two goals deep into injury time.
The home side took the lead after 42 minutes when striker Simon Yeo netted with his first shot on target.
The visitors came from behind with two goals in seven minutes after the break. The first was a Lee Cook penalty after Ben Futcher had brought down Leigh Wood and then Lee Nogan headed home after 58 minutes.
Futcher made up for his mistake with an equaliser after 80 minutes, but York again went in front through John Parkin a minute later.
Yeo drew Lincoln level with his second strike two minutes into injury time and then York defender Chris Brass could only deflect the ball into his own net after a shot from Ben Sedgemore came back off the post.
HASH(0x98f0370)