diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-07 12:47:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-07 12:47:14 -0800 |
commit | 87912fd617fb24ebcaa1c3ec57178821db9d2980 (patch) | |
tree | 57427ab21b3ef319d2d55ae09a78e41513d9c6dd /cache.h | |
parent | 93825874671ae15296442b1e7e39166c1754c934 (diff) | |
parent | 5256b006312e4d06e11b49a8b128e9e550e54f31 (diff) | |
download | git-87912fd617fb24ebcaa1c3ec57178821db9d2980.tar.gz |
Merge branch 'mm/mkstemps-mode-for-packfiles'
* mm/mkstemps-mode-for-packfiles:
Use git_mkstemp_mode instead of plain mkstemp to create object files
git_mkstemps_mode: don't set errno to EINVAL on exit.
Use git_mkstemp_mode and xmkstemp_mode in odb_mkstemp, not chmod later.
git_mkstemp_mode, xmkstemp_mode: variants of gitmkstemps with mode argument.
Move gitmkstemps to path.c
Add a testcase for ACL with restrictive umask.
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -641,6 +641,10 @@ int git_mkstemp(char *path, size_t n, const char *template); int git_mkstemps(char *path, size_t n, const char *template, int suffix_len); +/* set default permissions by passing mode arguments to open(2) */ +int git_mkstemps_mode(char *pattern, int suffix_len, int mode); +int git_mkstemp_mode(char *pattern, int mode); + /* * NOTE NOTE NOTE!! * |