On-loan Watford midfielder JJ McKiernan’s first goal for Eastleigh gave them a 1-0 victory at York.
The 20-year-old, on his fourth successive National League start, headed home from a corner three minutes before half-time.
York thought they had scored an equaliser before the interval when the ball was bundled in from a corner but the referee ruled Eastleigh goalkeeper Joe McDonnell had been impeded in the scramble.
In the second minute of added time the hosts’ Ryan Fallowfield headed inches wide from another set-piece as Eastleigh held on for a second win of the season which lifted them into the top half of the table.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.