History log of /freebsd-10.0-release/usr.sbin/extattr/rmextattr.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 248995 02-Apr-2013 mdf

Fix return type of extattr_set_* and fix rmextattr(8) utility.

extattr_set_{fd,file,link} is logically a write(2)-like operation and
should return ssize_t, just like extattr_get_*. Also, the user-space
utility was using an int for the return value of extattr_get_* and
extattr_list_*, both of which return an ssize_t.

MFC after: 1 week


# 247164 22-Feb-2013 pjd

Don't print an empty line for files with no attributes when -q is given for
lsextattr(8).


# 208004 12-May-2010 zml

extattr: Fix a signed/unsigned issue

Submitted by: Matthew Fleming <matthew.fleming@isilon.com>
Reviewed by: zml, dfr


# 202734 21-Jan-2010 nwhitehorn

Fix a bug when printing attributes from multiple files: buflen could be
longer than the length of the current attribute if the buffer were reused
and previously longer, so bits of the previous, longer attribute would be
written. Fix this by using the actual attribute length.


# 180537 15-Jul-2008 rwatson

Invoke err() with a format string rather than directly with a passed
command line argument.

Submitted by: Alfredo Ortega <alfredo at coresecurity dot com>
Thanks to: Core Security Technologies
MFC after: 3 days


# 115864 05-Jun-2003 rwatson

Update lsextattr(8) to use the new extattr_list_*() APIs, rather than
using the somewhat more hackish variant on extattr_get_*() to retrieve
the attribute list on an object.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


# 104803 10-Oct-2002 green

Add an -n option to write the trailing nul byte to the extattr when
using setextattr(8) to write a string.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


# 104801 10-Oct-2002 green

Correct argc verification (don't crash).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


# 104798 10-Oct-2002 rwatson

Add -h flags to each of the *extattr(8) commands, indicating that
the command should not follow the symlink if the target file is a
symlink. Invoke the extattr_*_link(2) version of the system call
in that situation, instead of extattr_*_file(2). This is
consistent with other attribute management tools in the system.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories


# 104796 10-Oct-2002 rwatson

Use basename(3) to derive the name of the binary from argv[0].

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Submitted by: green


# 102607 30-Aug-2002 phk

Add the new userland tool for manipulating extended attributes.

This will replace the existing getextattr(8) and setextattr(8) with
a single binary responding to the names getextattr, setextattr,
rmextattr and lsextattr.

This program is not yet connected to the build.

Sponsored by: DARPA and NAI Labs.