diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-07 21:47:14 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-07 21:47:14 +0100 |
commit | 87912fd617fb24ebcaa1c3ec57178821db9d2980 (patch) | |
tree | 57427ab21b3ef319d2d55ae09a78e41513d9c6dd /cache.h | |
parent | Merge branch 'jk/maint-add--interactive-delete' (diff) | |
parent | Use git_mkstemp_mode instead of plain mkstemp to create object files (diff) | |
download | git-87912fd617fb24ebcaa1c3ec57178821db9d2980.tar.xz git-87912fd617fb24ebcaa1c3ec57178821db9d2980.zip |
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!! * |