Louis Lam
2002-Feb-05 18:15 UTC
[Samba] About Length of Mountpoint(mounting smb shares on linux mntpoint)
Hi, I am writing a clone of the "smbmnt". This is to facilitate mounting of a smb mountpoint with a FiST-Style (stackable) file system. smbmnt.c(ver samba-2.0.7), uses fullpath() to check for the MAXPATHLEN of the mount-point specified. Unless i've made a mistake, the MAXPATHLEN is defined in "includes.h" which is of len 256. fullpath() checks this mount-point name to see that the path is not greater than 256. If it is so, then it will return NULL. I've tried to create a directory(mount point) whose name is 256 chars long, and I can still call smbmount to mount it. Q1. In this case, shouldn't fullpath return NULL and the smbmount(which in turn calls smbmnt) fail? Q2. What is the reason for checking this MAXPATHLEN? Thank you in advance Louis Lam _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com