This is one of Rashi's more difficult and debated comments.
Did Rashi understand Rahab to have been a food vendor?
Does the Aramaic word pundekita mean an innkeeper?
Was Rahab actually engaged in what is often called "the world's oldest profession"?
Or perhaps both?
These questions and more are discussed in the attached article.