Merge branch 'maint'

* maint:
  Another memory overrun in http-push.c
  fetch.o depends on the headers, too.
  Documentation: Correct minor typo in git-add documentation.
  Documentation/git-send-email.txt: Fix labeled list formatting
  Documentation/git-quiltimport.txt: Fix labeled list formatting
  Documentation/build-docdep.perl: Fix dependencies for included asciidoc files
This commit is contained in:
Junio C Hamano 2007-03-02 00:31:51 -08:00
commit 8b969a5fb5
6 changed files with 20 additions and 20 deletions

View File

@ -41,10 +41,6 @@ while ($changed) {
while (my ($text, $included) = each %include) { while (my ($text, $included) = each %include) {
if (! exists $included{$text} && if (! exists $included{$text} &&
(my $base = $text) =~ s/\.txt$//) { (my $base = $text) =~ s/\.txt$//) {
my ($suffix) = '1'; print "$base.html $base.xml : ", join(" ", keys %$included), "\n";
if ($base eq 'git') {
$suffix = '7'; # yuck...
}
print "$base.html $base.$suffix : ", join(" ", keys %$included), "\n";
} }
} }

View File

@ -52,7 +52,7 @@ OPTIONS
-f:: -f::
Allow adding otherwise ignored files. Allow adding otherwise ignored files.
\i, \--interactive:: -i, \--interactive::
Add modified contents in the working tree interactively to Add modified contents in the working tree interactively to
the index. the index.

View File

@ -42,7 +42,7 @@ OPTIONS
--patches <dir>:: --patches <dir>::
The directory to find the quilt patches and the The directory to find the quilt patches and the
quilt series file. quilt series file.
+
The default for the patch directory is patches The default for the patch directory is patches
or the value of the $QUILT_PATCHES environment or the value of the $QUILT_PATCHES environment
variable. variable.

View File

@ -26,12 +26,12 @@ The options available are:
--bcc:: --bcc::
Specify a "Bcc:" value for each email. Specify a "Bcc:" value for each email.
+
The --bcc option must be repeated for each user you want on the bcc list. The --bcc option must be repeated for each user you want on the bcc list.
--cc:: --cc::
Specify a starting "Cc:" value for each email. Specify a starting "Cc:" value for each email.
+
The --cc option must be repeated for each user you want on the cc list. The --cc option must be repeated for each user you want on the cc list.
--chain-reply-to, --no-chain-reply-to:: --chain-reply-to, --no-chain-reply-to::
@ -87,7 +87,7 @@ The options available are:
Specify the primary recipient of the emails generated. Specify the primary recipient of the emails generated.
Generally, this will be the upstream maintainer of the Generally, this will be the upstream maintainer of the
project involved. project involved.
+
The --to option must be repeated for each user you want on the to list. The --to option must be repeated for each user you want on the to list.

View File

@ -780,7 +780,7 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \ $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT) $(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
$(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H) $(LIB_OBJS) $(BUILTIN_OBJS) fetch.o: $(LIB_H)
$(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h) $(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)
$(DIFF_OBJS): diffcore.h $(DIFF_OBJS): diffcore.h

View File

@ -1271,7 +1271,9 @@ xml_cdata(void *userData, const XML_Char *s, int len)
struct xml_ctx *ctx = (struct xml_ctx *)userData; struct xml_ctx *ctx = (struct xml_ctx *)userData;
free(ctx->cdata); free(ctx->cdata);
ctx->cdata = xmalloc(len + 1); ctx->cdata = xmalloc(len + 1);
strlcpy(ctx->cdata, s, len + 1); /* NB: 's' is not null-terminated, can not use strlcpy here */
memcpy(ctx->cdata, s, len);
ctx->cdata[len] = '\0';
} }
static struct remote_lock *lock_remote(const char *path, long timeout) static struct remote_lock *lock_remote(const char *path, long timeout)
@ -1473,7 +1475,8 @@ static void process_ls_object(struct remote_ls_ctx *ls)
return; return;
path += 8; path += 8;
obj_hex = xmalloc(strlen(path)); obj_hex = xmalloc(strlen(path));
strlcpy(obj_hex, path, 3); /* NB: path is not null-terminated, can not use strlcpy here */
memcpy(obj_hex, path, 2);
strcpy(obj_hex + 2, path + 3); strcpy(obj_hex + 2, path + 3);
one_remote_object(obj_hex); one_remote_object(obj_hex);
free(obj_hex); free(obj_hex);
@ -2170,7 +2173,8 @@ static void fetch_symref(const char *path, char **symref, unsigned char *sha1)
/* If it's a symref, set the refname; otherwise try for a sha1 */ /* If it's a symref, set the refname; otherwise try for a sha1 */
if (!prefixcmp((char *)buffer.buffer, "ref: ")) { if (!prefixcmp((char *)buffer.buffer, "ref: ")) {
*symref = xmalloc(buffer.posn - 5); *symref = xmalloc(buffer.posn - 5);
strlcpy(*symref, (char *)buffer.buffer + 5, buffer.posn - 5); memcpy(*symref, (char *)buffer.buffer + 5, buffer.posn - 6);
(*symref)[buffer.posn - 6] = '\0';
} else { } else {
get_sha1_hex(buffer.buffer, sha1); get_sha1_hex(buffer.buffer, sha1);
} }