    if (top->unremovable)
      hash_free (top->unremovable);
    obstack_blank (&ds->Active_dir, -(int) sizeof (struct AD_ent));
-@@ -891,6 +893,7 @@
+@@ -836,14 +838,13 @@
+ {
+   int write_protected = 0;
+   int dirent_type = *pdirent_type;
+-
++  int wp_errno = 0;
++  
+   *is_empty = T_UNKNOWN;
+ 
+   if (x->interactive == RMI_NEVER)
+     return RM_OK;
+ 
+-  int wp_errno = 0;
+-
+   if (!x->ignore_missing_files
+       && ((x->interactive == RMI_ALWAYS) || x->stdin_tty)
+       && dirent_type != DT_LNK)
+@@ -891,6 +892,7 @@
  	    break;
  	  }
  

   if (fp->_IO_write_ptr > fp->_IO_write_base)
     return 0;
   return (fp->_IO_read_end - fp->_IO_read_ptr)
diff -urN --strip-trailing-cr coreutils-6.12/lib/freading.c coreutils-6.12-haiku/lib/freading.c
--- coreutils-6.12/lib/freading.c	2008-05-14 12:53:25.000000000 +0000
+++ coreutils-6.12-haiku/lib/freading.c	2008-10-02 12:30:41.000000000 +0000
@@ -31,7 +31,7 @@

       char const *quoted_name = quote (full_filename (filename));
 
       if (write_protected < 0)
@@ -930,6 +932,7 @@
 		    : _("%s: remove %s %s? ")),
 		   program_name, file_type (sbuf), quoted_name);
 	}
