]> arthur.barton.de Git - netatalk.git/commitdiff
Revert previous commit for the time being. The author probably _wanted_
authorjmarcus <jmarcus>
Thu, 22 Aug 2002 13:19:58 +0000 (13:19 +0000)
committerjmarcus <jmarcus>
Thu, 22 Aug 2002 13:19:58 +0000 (13:19 +0000)
to correlate the PID on the logfile to a running afpd process.

etc/afpd/afp_dsi.c

index f4a1235bc5e50135c6fa876beb5ba7f67bfae1e5..d865e05c352a57298fa5a522709eb6f4be4c6884 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: afp_dsi.c,v 1.22 2002-08-22 06:59:07 jmarcus Exp $
+ * $Id: afp_dsi.c,v 1.23 2002-08-22 13:19:58 jmarcus Exp $
  *
  * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
@@ -143,7 +143,7 @@ void afp_set_debug (int sig)
 {
     char       fname[MAXPATHLEN];
 
-    strncpy(fname, tempnam(P_tmpdir, "afpd-debug"), MAXPATHLEN-1);
+    snprintf(fname, MAXPATHLEN-1, "%safpd-debug-%d", P_tmpdir, getpid());
     freopen(fname, "w", stdout);
     child.obj->options.flags |= OPTION_DEBUG;