]> arthur.barton.de Git - netatalk.git/commitdiff
don't trash the db if a file is moved to a different directory without updating the db
authordidg <didg>
Sat, 28 Nov 2009 15:42:05 +0000 (15:42 +0000)
committerdidg <didg>
Sat, 28 Nov 2009 15:42:05 +0000 (15:42 +0000)
etc/cnid_dbd/dbd_lookup.c

index bacaed63465e00de8f534efd883837f79e13d8d5..f680d2f0c5ae7a46fae3d169dcd0e77791774b67 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dbd_lookup.c,v 1.12 2009-11-27 15:45:41 franklahm Exp $
+ * $Id: dbd_lookup.c,v 1.13 2009-11-28 15:42:05 didg Exp $
  *
  * Copyright (C) Joerg Lenneis 2003
  * Copyright (C) Frank Lahm 2009
@@ -242,6 +242,7 @@ int dbd_lookup(DBD *dbd, struct cnid_dbd_rqst *rqst, struct cnid_dbd_rply *rply,
             ntohl(rqst->did), rqst->name, (unsigned long long)rqst->dev, (unsigned long long)rqst->ino);
         /* Case 2) ? */
         if (strcmp(rqst->name, (char *)devdata.data + CNID_NAME_OFS) == 0) {
+            rqst->cnid = id_devino;
             LOG(log_debug, logtype_cnid, "dbd_lookup: server side mv from one dir to another");
             update = 1;
         } else {