summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithp <keithp@kemper.freedesktop.org>2006-02-15 00:24:39 -0800
committerkeithp <keithp@kemper.freedesktop.org>2006-02-15 00:24:39 -0800
commit64114dccdbf518934e98faf8ba8fbc2efb668e8f (patch)
tree60b24f2f2b4c90b1c518894c216269229578ffaa
parent5f5b4dd763b21f8b3f96307df8a8f3fff25425fb (diff)
Debugging output
-rw-r--r--ssh-bleach.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ssh-bleach.c b/ssh-bleach.c
index e4f6455..dd61a82 100644
--- a/ssh-bleach.c
+++ b/ssh-bleach.c
@@ -22,8 +22,10 @@
#include <string.h>
int cvs_server (char *line) {
- if (!strcmp (line, "cvs server"))
+ if (!strcmp (line, "cvs server")) {
+ printf ("cvs server\n");
return execl ("/usr/bin/cvs", "cvs", "server", NULL);
+ }
return 0;
}
@@ -50,6 +52,7 @@ char *get_quoted_arg (char *line)
*n++ = *old++;
}
*n++ = '\0';
+ printf ("First argument is \"%s\"\n", new);
return new;
}
@@ -59,6 +62,7 @@ int git_receive_pack (char *line) {
if (!strncmp (line, "git-receive-pack '", 18) &&
(arg = get_quoted_arg (line)))
{
+ printf ("git-receive-pack '%s'\n", arg);
return execl ("/usr/local/bin/git-receive-pack",
"git-receive-pack",
arg,
@@ -73,6 +77,7 @@ int git_upload_pack (char *line) {
if (!strncmp (line, "git-upload-pack '", 17) &&
(arg = get_quoted_arg (line)))
{
+ printf ("git-upload-pack '%s'\n", arg);
return execl ("/usr/local/bin/git-upload-pack",
"git-upload-pack",
arg,