PDA

View Full Version : a small problem


mile1982
10-02-2004, 06:03 AM
hey there

i kinda have a small/big problem. i have created a 'small' version of a shell that only accepts ls comamnds. my problem is that when i compiled the program and got it to work, i deleted the .c file from which the shell was created. but now, i would like to do some more work on the shell but stupidly enough dont have the .c file. so is there a way that i could somehow get the .c file from the shell program. if anyone could help, i would appreciate it very much

cheers
mile1982

i3839
10-02-2004, 01:34 PM
You could not mount that partition writable anymore and recover the file with some recovery tool. But if the file is small then it shouldn't be too hard to rewrite it from memory, although annoying. Disassembling the binary may work, but I guess that's more work in the end than rewriting it manually. I recommend to rewrite it from scratch much better than it was. ;-)