summaryrefslogtreecommitdiff
path: root/source3
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
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')
-rw-r--r--source3/rpc_server/srv_samr.c2
-rw-r--r--source3/smbd/ipc.c2
-rw-r--r--source3/smbwrapper/smbsh.c10
-rw-r--r--source3/tests/fcntl_lock.c1
4 files changed, 11 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 3a656b5a3b..74d06d1bca 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -30,7 +30,7 @@ extern int DEBUGLEVEL;
extern BOOL sam_logon_in_ssb;
extern pstring samlogon_user;
-extern pstring global_myworkgroup;
+extern fstring global_myworkgroup;
extern pstring global_myname;
extern DOM_SID global_sam_sid;
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index d359bc3500..d9ef53e70f 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -38,7 +38,7 @@ extern int DEBUGLEVEL;
extern int max_send;
extern pstring local_machine;
-extern pstring global_myworkgroup;
+extern fstring global_myworkgroup;
#define NERR_Success 0
#define NERR_badpass 86
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;
}
diff --git a/source3/tests/fcntl_lock.c b/source3/tests/fcntl_lock.c
index c54479434e..a90e00aa00 100644
--- a/source3/tests/fcntl_lock.c
+++ b/source3/tests/fcntl_lock.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <sys/types.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>