adjust_shared_perm: chmod() only when needed.
commitfe732edee10f9b241c8df9b4ea081a4f33ad3968
authorJunio C Hamano <junkio@cox.net>
Sat, 4 Nov 2006 20:24:05 +0000 (4 12:24 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 6 Nov 2006 02:36:36 +0000 (5 18:36 -0800)
tree5ceabceaefd7d72d75f381ef7d872d63c6c4b83b
parent49b8b2926fdcc4322445f0a3bda459e81cd98e9a
adjust_shared_perm: chmod() only when needed.

When widening permission for files and directories in a 'shared'
repository for a user with inappropriate umask() setting for
shared work, make sure we call chmod() only when we actually
need to.

The primary idea owes credit to Johannes.

Signed-off-by: Junio C Hamano <junkio@cox.net>
path.c