]> arthur.barton.de Git - netatalk.git/commitdiff
Remove duplicate in volname mangling. From HAT
authorfranklahm <franklahm>
Fri, 20 Mar 2009 06:19:26 +0000 (06:19 +0000)
committerfranklahm <franklahm>
Fri, 20 Mar 2009 06:19:26 +0000 (06:19 +0000)
etc/afpd/volume.c

index f4d58f606376c37778a71d92222d9bc6dd31c76f..53e74ea43845023263c761ac011350a791eea2a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: volume.c,v 1.81 2009-03-16 13:59:12 franklahm Exp $
+ * $Id: volume.c,v 1.82 2009-03-20 06:19:26 franklahm Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -630,9 +630,6 @@ static int creatvol(AFPObj *obj, struct passwd *pwd,
             tmpvlen = convert_charset(obj->options.unixcharset, obj->options.maccharset, 0, name, vlen, tmpname, AFPVOL_MACNAMELEN - suffixlen, &flags);
             tmpname[tmpvlen != (size_t)-1 ? tmpvlen : 0] = 0;
         }
-        if (*tmpname == 0) {
-            strcat(tmpname, "???");
-        }
         strcat(tmpname, suffix);
         tmpvlen = strlen(tmpname);
     }