Allow compile option to prevent change-ownership breaks on 5.1, so commented out until if ever I get time to fix it *** supcmeat.c Fri Feb 11 21:39:58 1994 --- supcmeat.c Sun Feb 27 17:04:13 1994 *************** *** 121,126 **** --- 121,128 ---- ********************************************************************** */ + #define NO_CHOWN + #include "supcdefs.h" #include #if __STDC__ *************** *** 852,858 **** --- 854,862 ---- return (FALSE); } if ((t->Tflags&FNOACCT) == 0) { + #ifndef NO_CHOWN (void) chown (t->Tname,t->Tuid,t->Tgid); + #endif (void) chmod (t->Tname,t->Tmode&S_IMODE); } tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0; *************** *** 928,934 **** --- 932,940 ---- } vnotify ("SUP Updating file %s\n",t->Tname); if ((t->Tflags&FNOACCT) == 0) { + #ifndef NO_CHOWN (void) chown (t->Tname,t->Tuid,t->Tgid); + #endif (void) chmod (t->Tname,t->Tmode&S_IMODE); } tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0; *************** *** 987,993 **** --- 993,1001 ---- if ((t->Tflags&FNOACCT) == 0) { /* convert user and group names to local ids */ ugconvert (t->Tuser,t->Tgroup,&t->Tuid,&t->Tgid,&t->Tmode); + #ifndef NO_CHOWN (void) chown (t->Tname,t->Tuid,t->Tgid); + #endif (void) chmod (t->Tname,t->Tmode&S_IMODE); } tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0;