summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-01 15:25:30 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-01 15:25:30 +0000
commit81e398963dbaed9c6661c336fe98329098576b94 (patch)
treef925ad8355cb1e73b37245de80353c465e2b7e2b /source3/lib/util.c
parent0966bf7fb7702b78e80ad3656581eda2091c930f (diff)
downloadsamba-81e398963dbaed9c6661c336fe98329098576b94.tar.gz
samba-81e398963dbaed9c6661c336fe98329098576b94.tar.bz2
samba-81e398963dbaed9c6661c336fe98329098576b94.zip
- moved the uid handling to uid.c
- added setfsuid() support (for Linux) - started adding some of Lukes changes, just the loadparm and ipc ones so far (This used to be commit 72543810ce3eb5ea7b141f957edf38b4c46b1ea4)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 2ac64d0648..d2f0383532 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3585,34 +3585,6 @@ int PutUniCode(char *dst,char *src)
return(ret);
}
-
-pstring smbrun_path = SMBRUN;
-
-/****************************************************************************
-run a command via system() using smbrun
-****************************************************************************/
-int smbrun(char *cmd,char *outfile)
-{
- int ret;
- pstring syscmd;
-
- if (!file_exist(smbrun_path,NULL))
- {
- DEBUG(0,("SMBRUN ERROR: Can't find %s. Installation problem?\n",smbrun_path));
- return(1);
- }
-
- sprintf(syscmd,"%s \"(%s 2>&1) > %s\"",
- smbrun_path,cmd,
- outfile?outfile:"/dev/null");
-
- DEBUG(5,("smbrun - running %s ",syscmd));
- ret = system(syscmd);
- DEBUG(5,("gave %d\n",ret));
- return(ret);
-}
-
-
/****************************************************************************
a wrapper for gethostbyname() that tries with all lower and all upper case
if the initial name fails
@@ -3745,8 +3717,7 @@ my own panic function - not suitable for general use
********************************************************************/
void ajt_panic(void)
{
- pstring cmd = "/usr/bin/X11/xedit -display :0 /tmp/ERROR_FAULT &";
- smbrun(cmd,NULL);
+ system("/usr/bin/X11/xedit -display :0 /tmp/ERROR_FAULT &");
}
#endif