diff -ur fileutils-4.0.37/ChangeLog fileutils-4.0.37-igl/ChangeLog --- fileutils-4.0.37/ChangeLog Sun Jan 21 12:27:38 2001 +++ fileutils-4.0.37-igl/ChangeLog Mon Feb 5 22:47:58 2001 @@ -1,3 +1,8 @@ +2001-02-05 Ian Lynagh + + * chmod directories u+rwx if necessary first if interactive is 0 + so we can remove them + 2001-01-21 Jim Meyering * Version 4.0.37. diff -ur fileutils-4.0.37/THANKS fileutils-4.0.37-igl/THANKS --- fileutils-4.0.37/THANKS Sat Jan 13 15:48:59 2001 +++ fileutils-4.0.37-igl/THANKS Mon Feb 5 23:01:02 2001 @@ -119,6 +119,7 @@ Hugh Daniel address@hidden Ian Jackson address@hidden Ian Lance Taylor address@hidden +Ian Lynagh address@hidden Ian Turner address@hidden James address@hidden James Antill address@hidden --- fileutils-4.0.37/src/remove.c Mon Dec 25 10:44:42 2000 +++ fileutils-4.0.37-igl/src/remove.c Mon Feb 5 22:47:00 2001 @@ -702,6 +702,12 @@ if (need_save_cwd && save_cwd (&cwd)) return RM_ERROR; + /* Make target directory u+rwx if it isn't already */ + if ((!(fs->mode & S_IRUSR) || !(fs->mode & S_IWUSR) || !(fs->mode & S_IXUSR)) + && !x->interactive) + /* We don't care about errors here, let them get caught below */ + chmod (dir_name, fs->mode | S_IRUSR | S_IWUSR | S_IXUSR); + /* Make target directory the current one. */ if (chdir (dir_name) < 0) {