X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fcopy-file.c;h=04d518df5a6ea7c98bf30a8a1594a468790ab2a9;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=c6719d4d9cd8d8ece043e79c6d9f5023acf8c31c;hpb=24a2f3c6ac107e6b35f1ac9f273b691738ef3f9a;p=gnulib.git diff --git a/lib/copy-file.c b/lib/copy-file.c index c6719d4d9..04d518df5 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -1,5 +1,5 @@ /* Copying of files. - Copyright (C) 2001-2003, 2006-2007, 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007, 2009-2014 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -37,6 +37,7 @@ #endif #include "error.h" +#include "ignore-value.h" #include "safe-read.h" #include "full-write.h" #include "acl.h" @@ -140,7 +141,7 @@ qcopy_file_preserving (const char *src_filename, const char *dest_filename) #if HAVE_CHOWN /* Preserve the owner and group. */ - chown (dest_filename, statbuf.st_uid, statbuf.st_gid); + ignore_value (chown (dest_filename, statbuf.st_uid, statbuf.st_gid)); #endif /* Preserve the access permissions. */