File: [Development] / xfs-cmds / attr / libattr / attr_copy_check.c (download)
Revision 1.6, Mon May 19 04:08:04 2008 UTC (9 years, 5 months ago) by bnaujok.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD Changes since 1.5: +3 -28
lines
the current attribute copying functions attr_copy_file and
attr_copy_fd is a static list of exceptions for attributes that need special
treatment. The list of those attributes tends to change (slowly) with kernel
versions. We replaced the static list with a config file a while ago; this is
the patch used.
Merge of master-melb:xfs-cmds:31181a by kenmcd.
Add configurable xattr copy
|
/* Copy extended attributes between files - default check callback */
/* Copyright (C) 2003 Andreas Gruenbacher <agruen@suse.de>, SuSE Linux AG.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "error_context.h"
#include "attr/libattr.h"
int
attr_copy_check_permissions(const char *name, struct error_context *ctx)
{
return attr_copy_action(name, ctx) == 0;
}