projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d668c6
)
[HAVE_LCHOWN]: Define chown to lchown.
author
Jim Meyering
<jim@meyering.net>
Wed, 24 Apr 1996 03:35:55 +0000
(
03:35
+0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 24 Apr 1996 03:35:55 +0000
(
03:35
+0000)
src/cp.c
patch
|
blob
|
history
diff --git
a/src/cp.c
b/src/cp.c
index eb6628be4475e41c632e3d77db8aa63f7f24f5f4..7dd2ddf8cefb776f14a3e0f0ed9b56ca137fb7be 100644
(file)
--- a/
src/cp.c
+++ b/
src/cp.c
@@
-36,6
+36,10
@@
uid_t geteuid ();
#endif
+#ifdef HAVE_LCHOWN
+# define chown(PATH, OWNER, GROUP) lchown(PATH, OWNER, GROUP)
+#endif
+
/* Used by do_copy, make_path_private, and re_protect
to keep a list of leading directories whose protections
need to be fixed after copying. */