# # # patch "ChangeLog" # from [22f4b4c7ddda6fbc2b9ad59c5f23c7e770b81622] # to [1da0b909bd2cdfcf8af52a8815f23bbfb8fccfb3] # # patch "work.cc" # from [3ae2f27c4144ca392eb4200e488a234f6db7d4e7] # to [84255ab5fc196afa22837bc1109dce8f2d8fd549] # ============================================================ --- ChangeLog 22f4b4c7ddda6fbc2b9ad59c5f23c7e770b81622 +++ ChangeLog 1da0b909bd2cdfcf8af52a8815f23bbfb8fccfb3 @@ -1,3 +1,8 @@ +2006-02-21 Nathaniel Smith + + * work.cc (detach_node): Check if we are passed the root dir, and + error out if so. + 2006-02-21 Matt Johnston * commands.cc (pid_file): newline-terminate the pid ============================================================ --- work.cc 3ae2f27c4144ca392eb4200e488a234f6db7d4e7 +++ work.cc 84255ab5fc196afa22837bc1109dce8f2d8fd549 @@ -754,6 +754,8 @@ { node_id nid = next_nid++; file_path src_pth(src); + // can't detach the root dir + E(src != file_path(), F("cannot delete or rename the root directory")); bookkeeping_path dst_pth = path_for_nid(nid); safe_insert(rename_add_drop_map, make_pair(dst_pth, src_pth)); make_dir_for(dst_pth);