]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/file.c
Remove volume option debugfile
[netatalk.git] / etc / afpd / file.c
index 41195251c086e1da8fd3049f50b5d2b2440404c2..31107ce28177101c76f79efea70483003817d30e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.132 2010-02-04 10:52:29 franklahm Exp $
+ * $Id: file.c,v 1.133 2010-02-08 10:29:22 franklahm Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -596,7 +596,7 @@ int afp_createfile(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf _U_,
     }
 
     upath = s_path->u_name;
-
+    
     /* if upath is deleted we already in trouble anyway */
     if ((of = of_findname(s_path))) {
         adp = of->of_ad;
@@ -667,18 +667,6 @@ createfile_done:
 
     setvoltime(obj, vol );
 
-    /* Check if this is the magic debugfile  */
-    if (retvalue == AFP_OK
-        && curdir->d_did == htonl(2)
-        && vol->v_debugfile
-        && strcmp(upath, vol->v_debugfile) == 0) {
-        char *path = absupath(vol, curdir, upath);
-        char *logstring = malloc(strlen("default log_maxdebug ") + strlen(path) + 1);
-        sprintf(logstring, "default log_maxdebug %s", path);
-        setuplog(logstring);
-        free(logstring);
-    }
-
     return (retvalue);
 }