]> arthur.barton.de Git - netatalk.git/commitdiff
bugfix: renamefile's first parameter is the unix name not the mac one. from
authordidg <didg>
Wed, 28 Aug 2002 15:08:16 +0000 (15:08 +0000)
committerdidg <didg>
Wed, 28 Aug 2002 15:08:16 +0000 (15:08 +0000)
matsu@nakamoto-sogo.co.jp

etc/afpd/file.c

index 35bfc7eaed59d188ef3b45a57c79fa4cf91a8769..2d1871e349c47de7e2cfdf09556e7722ea8e43d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.50 2002-08-22 13:41:20 didg Exp $
+ * $Id: file.c,v 1.51 2002-08-28 15:08:16 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1799,7 +1799,7 @@ int               ibuflen, *rbuflen;
     of_rename(vol, sdir, spath, curdir, temp);
 
     /* rename destination to source */
-    if ((err = renamefile(path, p, spath, vol_noadouble(vol), addp)) < 0)
+    if ((err = renamefile(upath, p, spath, vol_noadouble(vol), addp)) < 0)
         goto err_src_to_tmp;
     of_rename(vol, curdir, path, sdir, spath);