summaryrefslogtreecommitdiff
path: root/source3/smbwrapper
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-22 18:51:16 +0000
committerJeremy Allison <jra@samba.org>1998-10-22 18:51:16 +0000
commit80f920181f8d2d58bd3b341aac57de0c71e21374 (patch)
tree6c5db4dfe60abdc3f53ac359b8529f0dc96ed248 /source3/smbwrapper
parentcbd0b2ccf9519bcada58567b88987e134563058d (diff)
downloadsamba-80f920181f8d2d58bd3b341aac57de0c71e21374.tar.gz
samba-80f920181f8d2d58bd3b341aac57de0c71e21374.tar.bz2
samba-80f920181f8d2d58bd3b341aac57de0c71e21374.zip
server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstring
(as it is everywhere else). smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST. Exec users preferred shell is SHELL environment variable is set. tests/fcntl_lock.c: Added sys/types.h for systems that need this. Jeremy. (This used to be commit 50413d0d819d4f13e760ca8439c5bdde0898d63e)
Diffstat (limited to 'source3/smbwrapper')
-rw-r--r--source3/smbwrapper/smbsh.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/smbwrapper/smbsh.c b/source3/smbwrapper/smbsh.c
index 8df82e702d..b677707741 100644
--- a/source3/smbwrapper/smbsh.c
+++ b/source3/smbwrapper/smbsh.c
@@ -104,13 +104,19 @@ int main(int argc, char *argv[])
slprintf(line,sizeof(line)-1,"%s/smbwrapper.32.so:DEFAULT", libd);
smbw_setenv("_RLD_LIST", line);
slprintf(line,sizeof(line)-1,"%s/smbwrapper.so:DEFAULT", libd);
- smbw_setenv("_RLD32_LIST", line);
+ smbw_setenv("_RLDN32_LIST", line);
} else {
slprintf(line,sizeof(line)-1,"%s/smbwrapper.so:DEFAULT", libd);
smbw_setenv("_RLD_LIST", line);
}
- execl("/bin/sh","smbsh",NULL);
+ {
+ char *shellpath = getenv("SHELL");
+ if(shellpath)
+ execl(shellpath,"smbsh",NULL);
+ else
+ execl("/bin/sh","smbsh",NULL);
+ }
printf("launch failed!\n");
return 1;
}