diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-08 16:13:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-08 16:13:19 -0800 |
commit | 8b1981d32b41f1b4e26d8d96a3c6e63b9bc746b0 (patch) | |
tree | 13daae95357e1877e57e742dd9ea77ca5d3e3b16 /builtin-tag.c | |
parent | 3b8572a4297d8720b359c82e1dd9afeb45cda3cd (diff) | |
parent | a4f34cbb4cea1f0b0e625b528f269f4b517c64f8 (diff) | |
download | git-8b1981d32b41f1b4e26d8d96a3c6e63b9bc746b0.tar.gz |
Merge branch 'ar/maint-mksnpath' into maint
* ar/maint-mksnpath:
Use git_pathdup instead of xstrdup(git_path(...))
git_pathdup: returns xstrdup-ed copy of the formatted path
Fix potentially dangerous use of git_path in ref.c
Add git_snpath: a .git path formatting routine with output buffer
Fix potentially dangerous uses of mkpath and git_path
Fix mkpath abuse in dwim_ref and dwim_log of sha1_name.c
Add mksnpath which allows you to specify the output buffer
Conflicts:
builtin-revert.c
rerere.c
Diffstat (limited to 'builtin-tag.c')
-rw-r--r-- | builtin-tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-tag.c b/builtin-tag.c index 5b141c5846..843e9ac056 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -283,7 +283,7 @@ static void create_tag(const unsigned char *object, const char *tag, int fd; /* write the template message before editing: */ - path = xstrdup(git_path("TAG_EDITMSG")); + path = git_pathdup("TAG_EDITMSG"); fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600); if (fd < 0) die("could not create file '%s': %s", |