summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 12:47:14 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 12:47:14 -0800
commit87912fd617fb24ebcaa1c3ec57178821db9d2980 (patch)
tree57427ab21b3ef319d2d55ae09a78e41513d9c6dd /cache.h
parentMerge branch 'jk/maint-add--interactive-delete' (diff)
parentUse git_mkstemp_mode instead of plain mkstemp to create object files (diff)
downloadtgif-87912fd617fb24ebcaa1c3ec57178821db9d2980.tar.xz
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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index d454b7e686..4d89aa3da4 100644
--- a/cache.h
+++ b/cache.h
@@ -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!!
*