handle the case of an intermediate binary not loading smbwrapper.so
authorAndrew Tridgell <tridge@samba.org>
Sat, 24 Oct 1998 08:14:17 +0000 (08:14 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 24 Oct 1998 08:14:17 +0000 (08:14 +0000)
(for example /usr/bin/man because it is setgid).
(This used to be commit 85f639ab2ba72dda5a00cf11c8ee705f5a51ec54)

source3/smbwrapper/smbw.c

index eb156ce0ef5af3cf70beba83d80c0f9263f3a038..26dec4646e921d0ccf3293817264cc7758a2f5d6 100644 (file)
@@ -101,8 +101,7 @@ void smbw_init(void)
        
        p = smbw_getshared(line);
        if (!p) {
-               DEBUG(0,("ERROR: %s is not set\n", line));
-               exit(1);
+               sys_getwd(smbw_cwd);
        }
        pstrcpy(smbw_cwd, p);
        DEBUG(4,("Initial cwd is %s\n", smbw_cwd));