[uClinux-dev] samba smbmount question

Greg Ungerer gerg at snapgear.com
Mon Oct 3 21:59:11 EDT 2005


Hi Robin,

Robin Getz wrote:
> In uClinux-dist/user/samba/source/client/smbmount.c
> 
> http://cvs.uclinux.org/cgi-bin/cvsweb.cgi/~checkout~/uClinux-dist/user/samba/source/client/smbmount.c?rev=1.1.1.4;content-type=text%2Fplain 
> 
> 
> In the uClinux function daemonize
> 
>     pid = vfork();
>     if (pid == 0) {
>         execv(oldname, argv);
>         fprintf(stderr, "Failed to exec %s:%s\n", oldname, 
> strerror(errno));
>         exit(1);
>     }
> 
> Since 'oldname' is the name of the executable, (not the absolute path), 
> the only way I can make things work is to change the 'execv' to 'execvp' 
> which searches for the filename in the shell path.
> 
> I assume I should sent the patch (if necessary here, because it doesn't 
> look like uClinux is supported in the mainline ( looked in the 3.0, 3.1 
> and 4.0 branches):
> http://websvn.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_3_0_RELEASE/source/client/smbmount.c?rev=8814&view=markup 

Yep, send the patch here for that.

Although that is such a simple change I will change
and commit it now :-)

Thanks
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com



More information about the uClinux-dev mailing list