echo 'blahblah' > file1
ln file1 file2
ls -i file1 file2
#Expect both files to have the same inode number.
#Instead a new 'strange' file is created (see below);
cat file2
#Expect to see blablah
echo foo >>file2
#The above fails with permission denied! Instead we expect the file contents to be blahblahfoo
FYI Minor followup: Make sure new links also appear in the file browser (they don't)
FYI This also fails in a similar fashion if the hard link is created from C using link(2).
FYI A quick test of symbolic links suggest they work as expected.
FYI No difference in behavior between /sys and staging
Steps to reproduce
FYI Minor followup: Make sure new links also appear in the file browser (they don't) FYI This also fails in a similar fashion if the hard link is created from C using
link(2)
. FYI A quick test of symbolic links suggest they work as expected. FYI No difference in behavior between /sys and staging