if (update_dir[0] == '\0') error (0, errno, "unable to remove %s", file);
if (finfo->update_dir[0] == '\0') error (0, errno, "unable to remove %s", finfo->file);
remove_fileproc (file, update_dir, repository, entries, srcfiles)    char *file;    char *update_dir;    char *repository;    List *entries;    List *srcfiles;{    char fname[PATH_MAX];    Vers_TS *vers;    if (force)    {	if (!noexec)	{	    if (unlink (file) < 0 && ! existence_error (errno))	    {		if (update_dir[0] == '\0')		    error (0, errno, "unable to remove %s", file);		else		    error (0, errno, "unable to remove %s/%s", update_dir,			   file);	    }	}	/* else FIXME should probably act as if the file doesn't exist	   in doing the following checks.  */    }    vers = Version_TS (repository, (char *) NULL, (char *) NULL, (char *) NULL,		       file, 0, 0, entries, srcfiles);    if (vers->ts_user != NULL)    {	existing_files++;	if (!quiet)	    error (0, 0, "file `%s' still in working directory", file);    }    else if (vers->vn_user == NULL)    {	if (!quiet)	    error (0, 0, "nothing known about `%s'", file);    }    else if (vers->vn_user[0] == '0' && vers->vn_user[1] == '\0')    {	/*	 * It's a file that has been added, but not commited yet. So,	 * remove the ,t file for it and scratch it from the	 * entries file.  */	Scratch_Entry (entries, file);	(void) sprintf (fname, "%s/%s%s", CVSADM, file, CVSEXT_LOG);	(void) unlink_file (fname);	if (!quiet)	    error (0, 0, "removed `%s'", file);#ifdef SERVER_SUPPORT	if (server_active)	    server_checked_in (file, update_dir, repository);#endif    }    else if (vers->vn_user[0] == '-')    {	if (!quiet)	    error (0, 0, "file `%s' already scheduled for removal", file);    }    else    {	/* Re-register it with a negative version number.  */	(void) strcpy (fname, "-");	(void) strcat (fname, vers->vn_user);	Register (entries, file, fname, vers->ts_rcs, vers->options,		  vers->tag, vers->date, vers->ts_conflict);	if (!quiet)	    error (0, 0, "scheduling `%s' for removal", file);	removed_files++;#ifdef SERVER_SUPPORT	if (server_active)	    server_checked_in (file, update_dir, repository);#endif    }    freevers_ts (&vers);    return (0);}