$OpenBSD: patch-removefile_c,v 1.1.1.1 2007/10/26 20:22:42 jasper Exp $
--- removefile.c.orig	Wed Oct  3 17:23:48 2007
+++ removefile.c	Wed Oct  3 17:25:15 2007
@@ -193,7 +193,7 @@ void remove_file(gint session, char *filename) {
       gint *remove_pos = (gint*) malloc(list_size*sizeof(gint));
 
       if (remove_pos) {
-	char *pwd = get_current_dir_name();
+	char *pwd = getcwd(NULL,PATH_MAX);
 	int root_len = strlen(pwd)+1; /* +1: jump appended / */
 	gint i;
 
