Commit f18a398
committed
Fix rm hard link problem
Add the inode name compration in the unlink function
Since the hard link uses the same inode number as the original file
inode, it's necessary to check the name to prevent deletion of the
wrong inode.1 parent d6f3656 commit f18a398
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
0 commit comments