There is no denying Sanjay did a mistake and should be punished for it but seeing the circumstances of the time and that his family was getting threats, this sentence looks harsh.
Sanjay is no terrorist and judge also agreed to that. Some more knowledgeable people on rediff ofcourse no more and insist he was a terrorist which is actually just ignorance and confusion.
He has already served 16-18 months and waited 13 years with visits every week. I think sentence should have been less, maybe 3 years to set an example and a big fine. This sentence just goes to make foolish people of India happy that celeberities have been punished and rule of land upheld but the remember that politicians have gone scott free. There were nine other politicians caught with unlicensed weapons during that time.
http://www.rediff.com/news/2002/aug/06dilip.htm
I guess when politicians get sentenced, it will look like real justice. Getting high profile people like actors etc behind bars is no bravery.