Bug 23 - symlinks get the date of last file touched in directory
Summary: symlinks get the date of last file touched in directory
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Core Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1994-11-19 20:20 UTC by gil
Modified: 2020-04-10 14:18 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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