projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import upstream version 1.29
[debian/tar]
/
gnu
/
lchown.c
diff --git
a/gnu/lchown.c
b/gnu/lchown.c
index 0753010b9b994220fb9d895b6306d04e800164ae..7f5f6026702ba8adc486a3efd901064cfa6f7c14 100644
(file)
--- a/
gnu/lchown.c
+++ b/
gnu/lchown.c
@@
-1,8
+1,6
@@
-/* -*- buffer-read-only: t -*- vi: set ro: */
-/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
/* Provide a stub lchown function for systems that lack it.
/* Provide a stub lchown function for systems that lack it.
- Copyright (C) 1998-1999, 2002, 2004, 2006-2007, 2009-201
0
Free Software
+ Copyright (C) 1998-1999, 2002, 2004, 2006-2007, 2009-201
5
Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@
-72,11
+70,12
@@
lchown (const char *file, uid_t uid, gid_t gid)
int
rpl_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
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))
if (gid != (gid_t) -1 || uid != (uid_t) -1)
{
if (lstat (file, &st))