<div dir="ltr"><div>Hi everyone,</div><div><br></div><div>Currently, I&#39;m implementing tcp. If I use tcp like this:</div><div><br></div><div>./tcp  ./filename filename </div><div><br></div><div>The file would be set to 0 bytes. Is there a way that I could prevent copy target are actually the same file with the copy source. </div><div><br></div><div>I know I could compare names of two paths. But simply compare the name couldn&#39;t prevent this if there is a symbolic link.</div><div><br></div><div>Shenghan Gao</div></div>