The Treaty of Gandomak (26 or 30 May 1879) and the Treaty of the Durand Line overruled a prior agreement from 1893 concerning 2640 kilometers of porous border between India (now between Pakistan) and Afghanistan.