From: Ben Gras Date: Fri, 17 Mar 2006 15:22:17 +0000 (+0000) Subject: set_lids() not done. X-Git-Tag: v3.1.2a~191 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=816f031854f4ed5f0576f7ecb227b2231cff1702;p=minix.git set_lids() not done. --- 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); }