From 816f031854f4ed5f0576f7ecb227b2231cff1702 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 17 Mar 2006 15:22:17 +0000 Subject: [PATCH] set_lids() not done. --- commands/pax/file_subs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/pax/file_subs.c b/commands/pax/file_subs.c index 30391ec60..89e4a6d39 100644 --- a/commands/pax/file_subs.c +++ b/commands/pax/file_subs.c @@ -709,7 +709,9 @@ set_ids(char *fnm, uid_t uid, gid_t gid) int set_lids(char *fnm, uid_t uid, gid_t gid) { - if (chown(fnm, uid, gid) < 0) { + +#if 0 + if (lchown(fnm, uid, gid) < 0) { /* * ignore EPERM unless in verbose mode or being run by root. * if running as pax, POSIX requires a warning. @@ -720,6 +722,9 @@ set_lids(char *fnm, uid_t uid, gid_t gid) fnm); return(-1); } +#else + return(-1); /* No lchown() in minix. */ +#endif return(0); } -- 2.44.0