Buying permissible groceries from a store that also sells cigarettes or nude magazines

Question
Is it permissible to buy permissible groceries from a store that sells cigarettes and nude magazines?
Answer

Boycotting stores that sell some impermissible things will no doubt make the owners at least think about stopping the sale of those things. If a person is unable to find what he needs from anywhere else, he should buy only what he needs from there and try to advise the store owners. If what you need is elsewhere, you should deal with those that fear Allaah, so that it will help them further in their uprightness, and do this as a deterrent to those that engage in selling impermissible things, so that they may stop selling them.