//This program compiled and ran until I put /*******/ on top of some words // Helps administrator by deleting a select id and password from passwd file #include #include #include #include #include #include "SecureBuffer.h" using namespace std; int main(int argc, char * argv[]) { try{ if(argc !=2 ) { cerr <<"Usage: del name\n"; exit(1); } Buffer id(argv[1]); fstream passwd("passwd", ios::in | ios::out); const int record_size= sizeof(Buffer)+sizeof(SecureBuffer); // format described in list.cpp. file = record[*] blank[*]. if(!passwd) { throw runtime_error("File passwd can not be opened\n"); } int number_of_recs; passwd.seekp(0, ios::end); number_of_recs=passwd.tellp()/record_size ; SecureBuffer blank_passwd; Buffer blank_id; // find id in file if possible Buffer file_id; int record_number; for(record_number=0; record_number