<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/67259>67259</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`cp -dR --no-preserve=links d c` should have different inodes with hard links
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
rm -rf a b c d; mkdir d; (cd d; touch a; ln a b)
./target/debug/coreutils cp -dR --no-preserve=links d c
a_inode=$(ls -i c/a|sed 's,c/.*,,')
b_inode=$(ls -i c/b|sed 's,c/.*,,')
echo "$a_inode" = "$b_inode"
```
We should get different inodes
See https://github.com/uutils/coreutils/issues/5031 for a similar issue
On my system, why GNU:
`36311653 = 36341951`
with our impl:
`36311653 = 36311653`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU1GPmzgQ_jXDy4jIjIGEBx52E3Fvd9KdTn2sbDyAuwYi22SVf19Bstu0VbeVLDOMPd98841HhWD7ibmG4hmKU6KWOMy-Dld34RA9J3o21xpKcV_iBOLJj5j6DhVqbNGAfMbxxVh_M4EOrbmZcV7aAdVqumm9DlTdEHZATVS-5wjUGNZLD9S0s-clWhewPWNq_sU0neb07DmwvzDIk7PTS0CD7Q3ktqvPdprNegyUAx1cwNRiC9Qo2B8DGwTaB6Dj6toBPQEdt7V_Z6N_CaH_FILbYUYgAsrfCBEhyNPdqd-dd-7fK3rbPzGGYV6cwZ4jGtt17HmKuIWGx5v_MeMQ4zmAfAJqgJrexmHRu3YegZplk_FRUqDGhrDwahRCZtjNHhUGO1qnPG5njwn-mXC8YriGyCPQEV-HK_719_9rujf-spRZVhYStzJlKfOsKrL3kl5tHHBePNrx7D6M2_5-kCIxtTSVrFTCdVZWRZGXlSyToa4OhZZlqcvuoLNWdIWSOZl9LvZCZ7nuEluTICkqykWVFbLciYyUIZ0J2XayahXkgkdl3c65y7ibfZ9s1dflnooqcUqzC9s4EE38epeGaJ0OX68xqV76ALlwNsTwDSXa6Hgdld--3lK89XlQF_6p0bhJNyhvcItJFu_qD7q9Mrh_0rOfv3AbH9u91fU1AAD__wCDIgo">