]> arthur.barton.de Git - netatalk.git/blobdiff - etc/atalkd/config.c
Several small fixes, from Riccardo Magliocchetti
[netatalk.git] / etc / atalkd / config.c
index 09ee47eb9c0aa35ba3c4263667b3bbd159feddac..4005d6995631e8256608262dc457300a7623f5b5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: config.c,v 1.19 2009-10-14 02:24:05 didg Exp $
+ * $Id: config.c,v 1.20 2009-10-29 11:35:58 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -678,7 +678,7 @@ int zone(struct interface *iface, char **av)
     }
 
     /* codepage conversion */
-    if ((size_t)(-1) == convert_string_allocate(CH_UNIX, CH_MAC, av[0], strlen(av[0]), &zname)) {
+    if ((size_t)(-1) == convert_string_allocate(CH_UNIX, CH_MAC, av[0], -1, &zname)) {
        zname = strdup(av[0]);
     }
 
@@ -871,6 +871,8 @@ int plumb(void)
        }
 
        LOG(log_info, logtype_atalkd, "plumbed %s%d", device, ppa );
+
+    close(fd);
     }
 
     return( 0 );