$Id: README.lchflags,v 1.2 2002/05/06 01:36:08 joshua Exp joshua $ README for lchflags.diff Add the lchflags syscall and corresponding -h option to chflags(1), rounding out the [lf]?(chown|chmod|chflags|utimes|stat) set of interfaces to VOP_GETATTR and VOP_SETATTR. Setting flags on symlinks was previously only doable with fsdb(8). Now we can create symlinks with sunlink/schg etc. This mandates a tightening of chflags(2) use and related symlink traversal/creation in several base tools which might otherwise risk changing the target of symlink rather than the link itself. At the same time we fix a related, existing bug in mtree(8) (chown used rather than lchown in mtree -u) that could result in the *target* of an existing link changing owner to that of a differing recorded link. restore(8) learns all about all the symlink settings (however useless) for consistency with a) itself and b) NetBSD. Plus manual tweaks as appropriate. This diff includes changes to files generated from syscalls.master and to a vendor branch. The following might be excluded from a commit: sys/kern/init_sysent.c [generated from syscalls.master] sys/kern/syscalls.c [generated from syscalls.master] sys/sys/syscall.h [generated from syscalls.master] sys/sys/syscall.mk [generated from syscalls.master] sys/sys/sysproto.h [generated from syscalls.master] and then regenerated appropriately. Positive reviews from: cmc, mini, asmodai. A related PR, bin/36473, fits neatly with this. Joshua