1 /*
2 Copyright (C) 2003 Andreas Gruenbacher <agruen@suse.de>, SuSE Linux AG.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this manual. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 /* Copy extended attributes between files - default check callback */
19
20 #include "config.h"
21
22 #include <string.h>
23 #include "error_context.h"
24 #include "attr/libattr.h"
25
26 int
27 attr_copy_check_permissions(const char *name, struct error_context *ctx)
28 {
29 return attr_copy_action(name, ctx) == 0;
30 }
31