git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] cvsserver: Don't send mixed messages to clients

From
Frank Lichtenheld <frank@lichtenheld.de>
Date
May 13, 2007, 17:49 UTC
Message-ID
<1179078545517-git-send-email-frank@lichtenheld.de>

After we send I HATE YOU we should probably exit and not happily continue with I LOVE YOU and further communication.

Most clients will probably just exit and ignore everything we send after the I HATE YOU and it is not a security problem either because we don't really care about the user name anyway.

But it is still the right thing to do.
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
---
 git-cvsserver.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index a07c725..fcfb99d 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -105,6 +105,7 @@ if (@ARGV && $ARGV[0] eq 'pserver') {
     unless ($line eq 'anonymous') {
        print "E Only anonymous user allowed via pserver\n";
        print "I HATE YOU\n";
+       exit 1;
     }
     $line = <STDIN>; chomp $line;    # validate the password?
     $line = <STDIN>; chomp $line;
-- 
1.5.1.4
Next: Junio C Hamano
Message 1 of 5 in “cvsserver: Don't send mixed messages to clients”
  1. cvsserver: Don't send mixed messages to clientsFrank Lichtenheld, May 13, 2007
  2. Junio C HamanoMay 14, 2007
  3. Frank LichtenheldMay 20, 2007
  4. Junio C HamanoMay 20, 2007
  5. Frank LichtenheldMay 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.