diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-02-10 04:48:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-02-10 04:48:26 +0000 |
commit | 8055280c8a39e1b8582720773d6ad24624647131 (patch) | |
tree | 96433847050072755ffd54dd4cb754fa827fd722 /usr.sbin/setextattr | |
parent | 00cc7ae31839d4ec20bcf8814d74dcaac3b59cb6 (diff) | |
download | FreeBSD-src-8055280c8a39e1b8582720773d6ad24624647131.zip FreeBSD-src-8055280c8a39e1b8582720773d6ad24624647131.tar.gz |
Update userland tools to reflect extattr API changes.
Note that getextattr has not yet been updated to dynamically allocate
a read buffer, although that can now be done.
Obtained from: TrustedBSD Project
Sponsored by: NAI Labs
Diffstat (limited to 'usr.sbin/setextattr')
-rw-r--r-- | usr.sbin/setextattr/setextattr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/setextattr/setextattr.c b/usr.sbin/setextattr/setextattr.c index df7be4f..de68e68 100644 --- a/usr.sbin/setextattr/setextattr.c +++ b/usr.sbin/setextattr/setextattr.c @@ -52,7 +52,6 @@ usage(void) int main(int argc, char *argv[]) { - struct iovec iov_buf; int error, attrnamespace; if (argc != 5) @@ -64,10 +63,8 @@ main(int argc, char *argv[]) return (-1); } - iov_buf.iov_base = argv[4]; - iov_buf.iov_len = strlen(argv[4]); - - error = extattr_set_file(argv[3], attrnamespace, argv[2], &iov_buf, 1); + error = extattr_set_file(argv[3], attrnamespace, argv[2], argv[4], + strlen(argv[4])); if (error == -1) { perror(argv[3]); return (-1); |