Shlomi Yaakobovich | 5 Oct 2004 18:06
Favicon

-hostname option to afpd.conf

Hi all, 

Below is a patch that adds a -hostname option to the afpd.conf file. It's purpose is to allow afpd to use a
different hostname than the one returned by gethostname(). For example, if gethostname() resolves to a
certain IP address, but the afpd wants to use a different IP address. Using the -ipaddr option provides a
limited solution, since this cannot be done when the host resolution may change (as is the situation in our
system), e.g. from 10.0.0.100 to 10.0.0.101, but the name does not change. I certainly wouldn't want to
change the afpd.conf whenever the IP address I'm using changes...

Shlomi




> diff -u netatalk/etc/afpd/afp_options.c patch/afp_options.c
--- netatalk/etc/afpd/afp_options.c     2004-06-22 11:45:12.000000000 +0300
+++ patch/afp_options.c 2004-10-05 18:02:16.000000000 +0200
 <at>  <at>  -260,6 +260,17  <at>  <at> 

     /* figure out options w/ values. currently, this will ignore the setting
      * if memory is lacking. */
+
+    if ((c = getoption(buf, "-hostname"))) {
+        int len = strlen (c);
+        if (len <= MAXHOSTNAMELEN) {
+            memcpy(options->hostname, c, len);
+            options->hostname[len] = 0;
+        }
+        else
+            LOG(log_info, logtype_afpd, "WARNING: hostname %s is too long (%d)",c,len);
(Continue reading)

didier | 6 Oct 2004 04:37
Picon
Favicon

Re: [PATCH] fix "make maintainer-clean"

HI
Alexander Barton wrote:
> Hi!
> 
> Yet another trivial patch to the Makefile of the Solaris kernel module ...
> 
> It fixes "make maintainer-clean", which actually isn't implemented there 
> and therefore breaks it for the whole source tree.
> 
> Regards
> Alex
Commited

Didier

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
TSUBAKIMOTO Hiroya | 7 Oct 2004 09:52
X-Face
Picon

Patch to support CJK encoding charsets.

Hi,

I make a patch to support CJK encoding - MAC_CHINESE_TRAD,
MAC_CHINESE_SIMP, MAC_JAPANESE and MAC_KOREAN.
and uploaded to SF.net(ID:#1042041).

# I fail to upload to SF.net #1042039, very sorry.
# Please delete #1042039.

Hiroya
--

-- 
TSUBAKIMOTO Hiroya
<zorac <at> 4000do.co.jp>

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Hoc Ngo | 8 Oct 2004 05:15

Bugs in conversion library

Hi all,

I have uncovered a few bugs in netatalk-2.0-rc2:

1) utf8.c:
   The conversion from UTF-8 to UCS-2 and back does not handle surrogate
   pairs correctly.  Samba 3.0.6 has the same problem.

2) charcnv.c:
   convert_string() calls convert_string_internal(), which is incorrect
   when the source string is UCS-2 and the length is passed in as -1.
   This is because convert_string_internal() uses the same strlen() function
   to compute the length.  It should use strlen_w().  The implementation
   in Samba 3.0.6 is correct.

I will submit a patch later.

Thanks for your attention.

Hoc

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Dave Maxwell | 11 Oct 2004 17:17
Picon
Favicon

Case-Preserving Filesystems

I have confirmed that the underlying filesystem that Netatalk is serving
files from can indeed be a gotcha.  We use some reading assessment
software that internally utilizes a FoxPro database.  On a whim, I made an
hfs image and mounted it on loopback then shared it.  The application
would successfully run served this way.  I suspected the choice of hfs
wasn't necessarily the determining factor.  I copied the database to an
hpfs image mounted on loopback and it worked there as well.

I had already noted in the past that the apps would work served from a
Windows 2000 server with SFM as well.

The applications are written with the case-preserving behaivor of HFS and
HFS+ in mind.  The usual case is Appleshare running on a mac, no problem. 
NTFS is case-preserving as well.  If served with SFM, that is no problem
either.  Netatalk on top of ext2, ext3, and reiserfs, all failed.  Which I
now expect since they are case sensitive filesystems.  Netatalk serving
files from hfs, hfs+, and hpfs all work and pretty much look like the SFM
on top of NTFS.

It would be a VERY good idea to mention this in the FAQs.  The usual
deployment case of Netatalk will be on a case-sensitive filesystem.  I
have apps from two vendors that this deployment case breaks.

Dave Maxwell
Technician
Big Walnut Local Schools

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
(Continue reading)

Andrew Morgan | 11 Oct 2004 18:32

Netatalk 2.0.0 released


Netatalk 2.0.0
==============

The Netatalk development team is proud to announce the first stable release
of the new netatalk 2.0 codebase!

Major improvements over the 1.6 series are:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    * Netatalk's AFP 3.1 compliant file server allows long filenames,
      UTF-8 names, large file support and full Mac OS X compatibility
    * The print server task can directly interact with CUPS, automagically
      sharing all CUPS queues
    * Kerberos V support, allowing true "Single Sign On"
    * Whole rework of the CNID subsystem, providing reliable and persistant
      storage of file and directory IDs
    * Huge improvements regarding product documentation, making Netatalk's
      features accessible more easily
    * countless bugs fixed compared to previous versions

In case, you want to upgrade an existing Netatalk 1.x installation, ensure you
carefully read the upgrade guide before and follow the steps outlined there.
If you made use of symlinks inside Netatalk shares consider setting up a test
installation with 2.0 before migrating since Netatalk 2.0 provides no support
for symlinks any longer.

Netatalk is a collection of server programs and utilities for handling
various protocols employed by Apple Macintosh computers on Unix compatible
systems. This allows Unix hosts to act as file, print, and time servers for
(Continue reading)

Hoc Ngo | 12 Oct 2004 04:47

RE: Bugs in conversion library

Hi all,

I would like to submit two patches for utf8.c and charcnv.c for
your consideration.

Thanks

Hoc

> -----Original Message-----
> From: Hoc Ngo 
> Sent: Thursday, October 07, 2004 8:15 PM
> To: netatalk-devel <at> lists.sourceforge.net
> Subject: Bugs in conversion library
> 
> 
> Hi all,
> 
> I have uncovered a few bugs in netatalk-2.0-rc2:
> 
> 1) utf8.c:
>    The conversion from UTF-8 to UCS-2 and back does not 
> handle surrogate
>    pairs correctly.  Samba 3.0.6 has the same problem.
> 
> 2) charcnv.c:
>    convert_string() calls convert_string_internal(), which is 
> incorrect
>    when the source string is UCS-2 and the length is passed in as -1.
>    This is because convert_string_internal() uses the same 
(Continue reading)

didier | 12 Oct 2004 11:05
Picon
Favicon

Re: RE: Bugs in conversion library

Hoc Ngo wrote:
> Hi all,
> 
> I would like to submit two patches for utf8.c and charcnv.c for
> your consideration.
> 
> Thanks
> 
> Hoc
commited

Didier

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
TSUBAKIMOTO Hiroya | 12 Oct 2004 12:21
X-Face
Picon

MacOS9 finder repeat enumerating files

Hi, Congratulations for 2.0.0 released.

MacOS9 finder repeat enumerating files when noadouble option was set.
When meny unix files are in that directory, continue forever.

hasBeenInited flag of FInfo cause this trouble.

Patch attached.

--

-- 
TSUBAKIMOTO Hiroya
<zorac <at> 4000do.co.jp>

Attachment (file.c.patch): application/octet-stream, 711 bytes
Burkhard Schmidt | 12 Oct 2004 14:59
Picon
Favicon

Netatalk 2.0.0 on Tru64 UNIX: Patch for include/atalk/adouble.h

First of all, thanks for finally releasing Netatalk 2.0.0. I'm sorry 
for not having reported this earlier: I've encountered two little 
problems in include/atalk/adouble.h:

(a) Tru64 UNIX is an always-64-bit operating system, but versions 4.0 
and earlier don't set _FILE_OFFSET_BITS.

(b) As for the *BSD's, don't #define _XOPEN_SOURCE 500 for Tru64 UNIX, 
too. Otherwise this leads to a compile-time error on version 5.0 and 
later.

A patch is attached.

Best regards, Burkhard.

Attachment (adouble_h.patch): application/text, 913 bytes


Gmane