Subject: CVS commit: basesrc/tools/compat
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 10/08/2002 03:28:37
Module Name: basesrc
Committed By: lukem
Date: Tue Oct 8 00:28:37 UTC 2002
Modified Files:
basesrc/tools/compat: Makefile compat_defs.h
Added Files:
basesrc/tools/compat: lchflags.c lchmod.c lchown.c
Log Message:
Implement replacements for lchflags(), lchmod(), and lchown(),
which first lstat(2) the target and return EINVAL if it's a symlink,
and then call ch{flags,mod,own} as appropriate.
Removes the need for hokey code inside the tools themselves...
To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 basesrc/tools/compat/Makefile
cvs rdiff -r1.20 -r1.21 basesrc/tools/compat/compat_defs.h
cvs rdiff -r0 -r1.1 basesrc/tools/compat/lchflags.c \
basesrc/tools/compat/lchmod.c basesrc/tools/compat/lchown.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.