Bug 23

Summary: symlinks get the date of last file touched in directory
Product: Base System Reporter: gil <gil>
Component: miscAssignee: FreeBSD Core Team <core>
Status: Closed FIXED    
Severity: Affects Only Me CC: kevinstrootman07
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description gil 1994-11-19 20:20:01 UTC
	Directory date/time on symbolic links change whenever a file is
	created in the directory where the symbolic link resides

Fix: 

Not known currently.
How-To-Repeat: 
	Script started on Sat Nov 19 22:10:27 1994
	dosbox# ln -s /bin/sh foobar
	dosbox# ls -l foobar
	lrwxr-xr-x  1 root  wheel  7 Nov 19 22:10 foobar -> /bin/sh
	dosbox# date
	Sat Nov 19 22:10:36 CST 1994
	dosbox# ls -l foobar
	lrwxr-xr-x  1 root  wheel  7 Nov 19 22:10 foobar -> /bin/sh
	dosbox# date
	Sat Nov 19 22:11:46 CST 1994
	dosbox# ls -l foobar
	lrwxr-xr-x  1 root  wheel  7 Nov 19 22:10 foobar -> /bin/sh
	dosbox# date
	Sat Nov 19 22:12:32 CST 1994
	dosbox# touch x
	dosbox# ls -l foobar
	lrwxr-xr-x  1 root  wheel  7 Nov 19 22:12 foobar -> /bin/sh
	dosbox# ls -l x
	-rw-rw-r--  1 root  wheel  0 Nov 19 22:12 x
	dosbox# exit
	Script done on Sat Nov 19 22:12:50 1994
Comment 1 Paul Richards freebsd_committer freebsd_triage 1994-11-22 13:03:06 UTC
State Changed
From-To: open->closed

This is actually a behavioural change, not a bug.

In the BSD 4.4 UFS, symbolic links are allowed to exist only in the
directory information.

Therefore, it is correct to equate the time stamps with those on the
directory itself (permissions and ownership, too).

This isn't always desirable, but it's not a bug.

This is probably *the* primary FS incompatability.

(Terry Lambert)
Comment 2 kev 2020-04-10 14:18:56 UTC
MARKED AS SPAM