Hi,
If you use this configuration file for mount point /mnt/link
x1 -fstype=afs :/tmp
then, when requested, the daemon perform an incorrect symlink request:
[pid 1250] rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
[pid 1250] symlink("/tmp", "/mnt/link/x1/") = -1 ENOENT (No such file or
directory)
[pid 1250] munmap(0x40143000, 6940) = 0
the symlink call must be
symlink("/tmp", "/mnt/link/x1")
without final / on target
I' have used this patch to
autofs-4.0.0pre10/modules/mount_afs.c
*************** int mount_mount(const char *root, const
*** 40,45 ****
--- 40,47 ----
strncat(dest, "/", sizeof(dest));
strncat(dest, name, sizeof(dest));
+ if ( dest[strlen(dest)-1] == '/' ) dest[strlen(dest)-1]=0;
+
/* This was here just so I could figure out how this worked.
syslog(LOG_DEBUG, MODPREFIX "mount_mount called with root=\"%s\", "
"name=\"%s\", namelen=\"%d, what=\"%s\", fstype=\"%s\",
options=\"%s\"",+ root, name, name_len, what, fstype, options); */
--
# Dr. Giorgio Vecchiocattivi
# Istituto Informatica e Telematica CNR
# Via Moruzzi 1, 56124 Pisa (Italy)
# Tel: +39 050 315 2413 / Fax: +39 050 315 2333