 configure.ac                       |    2 +-
 etc/afpd/desktop.c                 |   33 +++++++++++++++++++++++++++++++++
 etc/afpd/main.c                    |    2 +-
 etc/afpd/volume.c                  |    6 +++---
 libatalk/cnid/cdb/cnid_cdb_close.c |    4 ++--
 libatalk/cnid/cnid.c               |    4 ++--
 libatalk/cnid/dbd/cnid_dbd.c       |    2 +-
 macros/cups.m4                     |    2 +-
 macros/quota-check.m4              |    2 +-
 macros/zeroconf.m4                 |    2 +-
 10 files changed, 46 insertions(+), 13 deletions(-)

diff --git a/configure.ac b/configure.ac
index 176c03b..cad6b2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -847,7 +847,7 @@ fi
 dnl ------ Check for sendfile() --------
 netatalk_cv_search_sendfile=yes
 AC_ARG_ENABLE(sendfile,
-    [  --disable-sendfile       disable sendfile syscall],
+    [  --disable-sendfile      disable sendfile syscall],
     [if test x"$enableval" = x"no"; then
             netatalk_cv_search_sendfile=no
         fi]
diff --git a/etc/afpd/desktop.c b/etc/afpd/desktop.c
index 8446a84..da39e9b 100644
--- a/etc/afpd/desktop.c
+++ b/etc/afpd/desktop.c
@@ -39,6 +39,20 @@
 #include "mangle.h"
 
 
+typedef struct _U2MMAP {
+    char *mname;
+    char *uname;
+} U2MMAP;
+
+U2MMAP u2mmap[] = {
+    { "Network Trash Folder", ".AppleTrash" },
+    { "Temporary Items", ".AppleTemp" },
+    { "TheVolumeSettingsFolder", ".AppleVolumeSettings" },
+    { "TheFindByContentFolder", ".AppleFindByContent" },
+    { 0L, 0L } /* end of list */
+};
+
+
 int afp_opendt(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen)
 {
     struct vol	*vol;
@@ -598,6 +612,7 @@ char *mtoupath(const struct vol *vol, char *mpath, cnid_t did, int utf8)
     size_t       inplen;
     size_t       outlen;
     u_int16_t	 flags;
+    U2MMAP       *u2m;
         
     if ( *mpath == '\0' ) {
         strcpy(upath, ".");
@@ -615,6 +630,14 @@ char *mtoupath(const struct vol *vol, char *mpath, cnid_t did, int utf8)
     m = mpath;
     u = upath;
 
+    u2m = u2mmap;
+    while(u2m->mname) {
+        if (strcmp(m, u2m->mname) == 0) {
+            m = u2m->uname;
+        }
+        u2m++;
+    }
+
     inplen = strlen(m);
     outlen = MAXPATHLEN;
 
@@ -638,6 +661,7 @@ char *utompath(const struct vol *vol, char *upath, cnid_t id, int utf8)
     char        *m, *u;
     u_int16_t    flags;
     size_t       outlen;
+    U2MMAP       *u2m;
 
     m = mpath;
     outlen = strlen(upath);
@@ -651,12 +675,21 @@ char *utompath(const struct vol *vol, char *upath, cnid_t id, int utf8)
         LOG(log_error, logtype_afpd, "Conversion from %s to %s for %s (%u) failed.", vol->v_volcodepage, vol->v_maccodepage, u, ntohl(id));
 	goto utompath_error;
     }
+    mpath[outlen] = 0;
 
     flags = !!(flags & CONV_REQMANGLE);
 
     if (utf8)
         flags |= 2;
 
+    u2m = u2mmap;
+    while(u2m->mname) {
+        if (strcmp(mpath, u2m->uname) == 0) {
+            strcpy(mpath, u2m->mname);
+        }
+        u2m++;
+    }
+
     m = mangle(vol, mpath, outlen, upath, id, flags);
 
 #ifdef DEBUG
diff --git a/etc/afpd/main.c b/etc/afpd/main.c
index e23d557..4a84f95 100644
--- a/etc/afpd/main.c
+++ b/etc/afpd/main.c
@@ -399,7 +399,7 @@ int main(int ac, char **av)
     /* watch atp, dsi sockets and ipc parent/child file descriptor. */
 
     if (default_options.flags & OPTION_KEEPSESSIONS) {
-        LOG(log_note, logtype_afpd, "Activating continous service");
+        LOG(log_note, logtype_afpd, "Activating continuous service");
         disasociated_ipc_fd = ipc_server_uds(_PATH_AFP_IPC);
     }
 
diff --git a/etc/afpd/volume.c b/etc/afpd/volume.c
index 5094553..8079966 100644
--- a/etc/afpd/volume.c
+++ b/etc/afpd/volume.c
@@ -146,10 +146,10 @@ typedef struct _special_folder {
 } _special_folder;
 
 static const _special_folder special_folders[] = {
-    {"Network Trash Folder",     1,  0777,  1},
-    {"Temporary Items",          1,  0777,  1},
     {".AppleDesktop",            1,  0777,  0},
 #if 0
+    {"Network Trash Folder",     1,  0777,  1},
+    {"Temporary Items",          1,  0777,  1},
     {"TheFindByContentFolder",   0,     0,  1},
     {"TheVolumeSettingsFolder",  0,     0,  1},
 #endif
@@ -426,7 +426,7 @@ static void volset(struct vol_option *options, struct vol_option *save,
         setoption(options, save, VOLOPT_ROLIST, val);
 
     } else if (optionok(tmp, "codepage:", val)) {
-        LOG (log_error, logtype_afpd, "The old codepage system has been removed. Please make sure to read the documentation !!!!");
+        LOG (log_error, logtype_afpd, "The old codepage system has been removed. Please make sure to read the documentation!");
         /* Make sure we don't screw anything */
         exit (EXITERR_CONF);
     } else if (optionok(tmp, "volcharset:", val)) {
diff --git a/libatalk/cnid/cdb/cnid_cdb_close.c b/libatalk/cnid/cdb/cnid_cdb_close.c
index 92f8ce6..04ae46c 100644
--- a/libatalk/cnid/cdb/cnid_cdb_close.c
+++ b/libatalk/cnid/cdb/cnid_cdb_close.c
@@ -13,8 +13,8 @@ void cnid_cdb_close(struct _cnid_db *cdb) {
     CNID_private *db;
 
     if (!cdb) {
-	    LOG(log_error, logtype_afpd, "cnid_close called with NULL argument !");
-	    return;
+        LOG(log_error, logtype_afpd, "cnid_close called with NULL argument!");
+        return;
     }
 
     if (!(db = cdb->_private)) {
diff --git a/libatalk/cnid/cnid.c b/libatalk/cnid/cnid.c
index 8bb6373..09d9107 100644
--- a/libatalk/cnid/cnid.c
+++ b/libatalk/cnid/cnid.c
@@ -46,7 +46,7 @@ void cnid_register(struct _cnid_module *module)
     /* Check if our module is already registered. */
     list_for_each(ptr, &modules)
         if (0 == strcmp(list_entry(ptr, cnid_module, db_list)->name, module->name)) {
-        LOG(log_error, logtype_afpd, "Module with name [%s] is already registered !", module->name);
+        LOG(log_error, logtype_afpd, "Module with name [%s] is already registered!", module->name);
         return;
     }
 
@@ -202,7 +202,7 @@ void cnid_close(struct _cnid_db *db)
 u_int32_t flags;
 
     if (NULL == db) {
-        LOG(log_error, logtype_afpd, "Error: cnid_close called with NULL argument !");
+        LOG(log_error, logtype_afpd, "Error: cnid_close called with NULL argument!");
         return;
     }
     /* cnid_close free db */
diff --git a/libatalk/cnid/dbd/cnid_dbd.c b/libatalk/cnid/dbd/cnid_dbd.c
index ded8243..e2f8f39 100644
--- a/libatalk/cnid/dbd/cnid_dbd.c
+++ b/libatalk/cnid/dbd/cnid_dbd.c
@@ -520,7 +520,7 @@ void cnid_dbd_close(struct _cnid_db *cdb)
     CNID_private *db;
 
     if (!cdb) {
-        LOG(log_error, logtype_cnid, "cnid_close called with NULL argument !");
+        LOG(log_error, logtype_cnid, "cnid_close called with NULL argument!");
         return;
     }
 
diff --git a/macros/cups.m4 b/macros/cups.m4
index 5507aa4..61e83aa 100644
--- a/macros/cups.m4
+++ b/macros/cups.m4
@@ -42,7 +42,7 @@ AC_DEFUN([NETATALK_AC_CUPS], [
 
 
 	AC_ARG_WITH(spooldir,
-       	[  --with-spooldir=PATH     path for spooldir used for CUPS support (LOCALSTATEDIR/spool/netatalk)],[
+	[  --with-spooldir=PATH    path for spooldir used for CUPS support (LOCALSTATEDIR/spool/netatalk)],[
 
 	        if test "$withval" = "no"; then
         	       if test x"$spool_required" = x"yes"; then
diff --git a/macros/quota-check.m4 b/macros/quota-check.m4
index 44e89bc..3f7ce9b 100644
--- a/macros/quota-check.m4
+++ b/macros/quota-check.m4
@@ -4,7 +4,7 @@ dnl FIXME: This is in now way complete.
 
 AC_DEFUN([AC_CHECK_QUOTA], [
 	AC_ARG_ENABLE(quota,
-	[  --enable-quota           Turn on quota support (default=auto)])
+	[  --enable-quota          Turn on quota support (default=auto)])
 
 	if test x$enable_quota != xno; then
 	QUOTA_LIBS=""
diff --git a/macros/zeroconf.m4 b/macros/zeroconf.m4
index 2adc842..8a64b10 100644
--- a/macros/zeroconf.m4
+++ b/macros/zeroconf.m4
@@ -7,7 +7,7 @@ AC_DEFUN([NETATALK_ZEROCONF], [
 	zeroconf_dir=""
 
 	AC_ARG_ENABLE(zeroconf,
-		[  --enable-zeroconf[[=DIR]]   enable Zeroconf support [[auto]]],
+		[  --enable-zeroconf[[=DIR]] enable Zeroconf support [[auto]]],
 		[zeroconf=$enableval],
 		[zeroconf=try]
 	)
