4 Commits
Author SHA1 Message Date
Wolfram Schneider 44a5cf1372 manpages: Fix unusual Xr order 2026-10-25 12:02:00 +00:00
Rick Macklem 4bfb7cfb70 runat: Add -h to manipulate a symlink's named attribute dir
Lionel Cons <[email protected]> requested
that a new option be added to runat(1) so that it could
be used to manipulate named attributes associated with
a symbolic link and not the file the symbolic link refers to).

This patch adds the option -h/--nofollow to do this.

Requested by:	Lionel Cons <[email protected]>
Reviewed by:	kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D55023
2026-02-02 14:38:13 -08:00
Rick Macklem 511de5b143 runat.c: Add an explicit check for snprintf() failure
The check for "outsiz" too large was probably sufficient to
catch failures, since it was cast to an unsigned (size_t).
However, it seems appropriate to add an explicit check for
a failed case (returning -1).

Discussed with:	oshogbo
Fixes:	0660de8172 ("runat: Add a runat(1) utility similar to the Solaris one")
2025-05-10 07:46:17 -07:00
Rick Macklem 0660de8172 runat: Add a runat(1) utility similar to the Solaris one
Solaris has a utility called runat(1) that runs a shell
command on a named attribute directory.  This utility
is modelled after that one.

Reviewed by:	kib (earlier version)
Differential Revision:	https://reviews.freebsd.org/D49850
2025-05-06 13:36:06 -07:00