]> arthur.barton.de Git - netatalk.git/commitdiff
Fix for afpd debugging by Stefan Muenkner.
authorsrittau <srittau>
Fri, 6 Jun 2003 19:41:48 +0000 (19:41 +0000)
committersrittau <srittau>
Fri, 6 Jun 2003 19:41:48 +0000 (19:41 +0000)
etc/afpd/afp_dsi.c

index 230531644e099e431cb8b8055b7a765375b49bc8..8d09e1902ed3d93547920984e5ca367116e0a3ff 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: afp_dsi.c,v 1.28 2003-05-16 15:29:26 didg Exp $
+ * $Id: afp_dsi.c,v 1.29 2003-06-06 19:41:48 srittau Exp $
  *
  * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
@@ -174,7 +174,7 @@ void afp_set_debug (int sig)
 {
     char       fname[MAXPATHLEN];
 
-    snprintf(fname, MAXPATHLEN-1, "%safpd-debug-%d", P_tmpdir, getpid());
+    snprintf(fname, MAXPATHLEN-1, "%s/afpd-debug-%d", P_tmpdir, getpid());
     freopen(fname, "w", stdout);
     child.obj->options.flags |= OPTION_DEBUG;