commit | fe732edee10f9b241c8df9b4ea081a4f33ad3968 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <junkio@cox.net> | Sat Nov 04 12:24:05 2006 -0800 |
committer | Junio C Hamano <junkio@cox.net> | Sun Nov 05 18:36:36 2006 -0800 |
tree | 5ceabceaefd7d72d75f381ef7d872d63c6c4b83b | |
parent | 49b8b2926fdcc4322445f0a3bda459e81cd98e9a [diff] |
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>