]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/filedir.c
long name an utf8 name in the same query (copy the same name for now). More
[netatalk.git] / etc / afpd / filedir.c
index 22c38870103ed08d57a08abc9db90767956bf4fa..0eb383e59ea4dfdce05a1c1cd756b0a62fad1eb5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: filedir.c,v 1.34 2002-10-13 06:18:13 didg Exp $
+ * $Id: filedir.c,v 1.35 2002-10-25 11:10:48 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -566,6 +566,7 @@ int         ibuflen, *rbuflen;
 #endif /* CNID_DB */
     }
     if ( rc == AFP_OK ) {
+       curdir->offcnt--;
         setvoltime(obj, vol );
     }
 
@@ -697,6 +698,9 @@ int         ibuflen, *rbuflen;
     rc = moveandrename(vol, sdir, oldname, newname, isdir);
 
     if ( rc == AFP_OK ) {
+        curdir->offcnt++;
+        sdir->offcnt--;
+
         char *upath = mtoupath(vol, newname);
 #ifdef DROPKLUDGE
         if (vol->v_flags & AFPVOL_DROPBOX) {