X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnu%2Flchown.c;h=99c794c336d49db7744be63f5057a883b373af0b;hb=e4faf46844fa3162def723f12a09791e350caabb;hp=0753010b9b994220fb9d895b6306d04e800164ae;hpb=29ece34f44a27750bbfd76154ad9882580453dc7;p=debian%2Ftar diff --git a/gnu/lchown.c b/gnu/lchown.c index 0753010b..99c794c3 100644 --- a/gnu/lchown.c +++ b/gnu/lchown.c @@ -2,7 +2,7 @@ /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ /* Provide a stub lchown function for systems that lack it. - Copyright (C) 1998-1999, 2002, 2004, 2006-2007, 2009-2010 Free Software + Copyright (C) 1998-1999, 2002, 2004, 2006-2007, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -72,11 +72,12 @@ lchown (const char *file, uid_t uid, gid_t gid) int rpl_lchown (const char *file, uid_t uid, gid_t gid) { - struct stat st; bool stat_valid = false; int result; # if CHOWN_CHANGE_TIME_BUG + struct stat st; + if (gid != (gid_t) -1 || uid != (uid_t) -1) { if (lstat (file, &st))