From: didg Date: Wed, 20 Oct 2004 21:43:33 +0000 (+0000) Subject: bugfix: use the right encoding in mapid. X-Git-Tag: netatalk-2-0-1~10 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=ba1bc1a5482bcd439c0b8c2a60198048a18924c1 bugfix: use the right encoding in mapid. --- diff --git a/etc/afpd/directory.c b/etc/afpd/directory.c index a9cfba7b..9f19652a 100644 --- a/etc/afpd/directory.c +++ b/etc/afpd/directory.c @@ -1,5 +1,5 @@ /* - * $Id: directory.c,v 1.71.2.4.2.15 2004-06-01 06:33:10 bfernhomberg Exp $ + * $Id: directory.c,v 1.71.2.4.2.15.2.1 2004-10-20 21:43:33 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -2274,7 +2274,7 @@ int ibuflen, *rbuflen; if (( pw = getpwuid( id )) == NULL ) { return( AFPERR_NOITEM ); } - len = convert_string_allocate( obj->options.unixcharset, ((sfunc == 1)?obj->options.maccharset:CH_UTF8_MAC), + len = convert_string_allocate( obj->options.unixcharset, ((!utf8)?obj->options.maccharset:CH_UTF8_MAC), pw->pw_name, strlen(pw->pw_name), &name); break; @@ -2283,7 +2283,7 @@ int ibuflen, *rbuflen; if (NULL == ( gr = (struct group *)getgrgid( id ))) { return( AFPERR_NOITEM ); } - len = convert_string_allocate( obj->options.unixcharset, (sfunc == 1)?obj->options.maccharset:CH_UTF8_MAC, + len = convert_string_allocate( obj->options.unixcharset, (!utf8)?obj->options.maccharset:CH_UTF8_MAC, gr->gr_name, strlen(gr->gr_name), &name); break;