X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcopy-acl.c;h=f0dc1165deb2988d9c750fccec42cd1cd8c70acc;hb=c5c66975f77962d53fee68bc2766cc59cabf95e1;hp=e8a4460f57359dbdcf2ecbbf8c84f1bf082f0574;hpb=7c2e36888a6f0d63557fc2b98a8c8f3d3cb73aa3;p=gnulib.git diff --git a/lib/copy-acl.c b/lib/copy-acl.c index e8a4460f5..f0dc1165d 100644 --- a/lib/copy-acl.c +++ b/lib/copy-acl.c @@ -1,6 +1,6 @@ /* copy-acl.c - copy access control list from one file to another file - Copyright (C) 2002-2003, 2005-2010 Free Software Foundation, Inc. + Copyright (C) 2002-2003, 2005-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -358,7 +358,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name, if (ret < 0 && saved_errno == 0) { saved_errno = errno; - if ((errno == ENOSYS || errno == EOPNOTSUPP) + if ((errno == ENOSYS || errno == EOPNOTSUPP || errno == EINVAL) && !acl_nontrivial (count, entries)) saved_errno = 0; }