X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fatalkd%2Fconfig.c;h=4005d6995631e8256608262dc457300a7623f5b5;hb=f9a95c83ef9379a0cf6d4d46f35ca0a12b84dd9b;hp=09ee47eb9c0aa35ba3c4263667b3bbd159feddac;hpb=567ceececbc94d854e94c84bbd61980240777f7a;p=netatalk.git diff --git a/etc/atalkd/config.c b/etc/atalkd/config.c index 09ee47eb..4005d699 100644 --- a/etc/atalkd/config.c +++ b/etc/atalkd/config.c @@ -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 );