(void) asystem("%s -R -P %d:%d %s", CHOWN, uid, gid, dir);
(void) asystem("%s -R -P %u:%u %s", CHOWN, uid, gid, dir);
copydotfiles(char *skeldir, int uid, int gid, char *dir){	struct dirent	*dp;	DIR		*dirp;	int		n;	if ((dirp = opendir(skeldir)) == NULL) {		warn("can't open source . files dir `%s'", skeldir);		return 0;	}	for (n = 0; (dp = readdir(dirp)) != NULL && n == 0 ; ) {		if (strcmp(dp->d_name, ".") == 0 ||		    strcmp(dp->d_name, "..") == 0) {			continue;		}		n = 1;	}	(void) closedir(dirp);	if (n == 0) {		warnx("No \"dot\" initialisation files found");	} else {		(void) asystem("cd %s; %s -rw -pe %s . %s", 				skeldir, PAX, (verbose) ? "-v" : "", dir);	}	(void) asystem("%s -R -P %d:%d %s", CHOWN, uid, gid, dir);	(void) asystem("%s -R u+w %s", CHMOD, dir);	return n;}