I think its safe to say that over the last 30K years or so, Man has co-evolved with Dogs. Its something of a symbiosis.
I was cleaning a deer a few years ago. It was hanging from a tree. It got dark, so I set up a halogen light. My dog went and laid down on the edge of the light, and watched the darkness for intruders.