diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-05 22:32:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-05 22:32:45 +0000 |
commit | 48eb635f31a09fa0822d95d3e895255ef8a6d5e2 (patch) | |
tree | 9cbef9d76909afa468a296684199c121134ad29c /source3/smbd/trans2.c | |
parent | 474758956cd73be0b5eea1070f9259608c12a4e6 (diff) | |
download | samba-48eb635f31a09fa0822d95d3e895255ef8a6d5e2.tar.gz samba-48eb635f31a09fa0822d95d3e895255ef8a6d5e2.tar.bz2 samba-48eb635f31a09fa0822d95d3e895255ef8a6d5e2.zip |
Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
(This used to be commit 92c3ae3458177ec7f721598311a8ad04b2db5138)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index e2df517f40..38fed4beae 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -249,6 +249,9 @@ static int call_trans2open(connection_struct *conn, char *inbuf, char *outbuf, i open_size = IVAL(params,14); pname = ¶ms[28]; + if (IS_IPC(conn)) + return(ERROR_DOS(ERRSRV,ERRaccess)); + srvstr_get_path(inbuf, fname, pname, sizeof(fname), -1, STR_TERMINATE, &status); if (!NT_STATUS_IS_OK(status)) { return ERROR_NT(status); @@ -257,9 +260,6 @@ static int call_trans2open(connection_struct *conn, char *inbuf, char *outbuf, i DEBUG(3,("trans2open %s mode=%d attr=%d ofun=%d size=%d\n", fname,open_mode, open_attr, open_ofun, open_size)); - if (IS_IPC(conn)) - return(ERROR_DOS(ERRSRV,ERRaccess)); - /* XXXX we need to handle passed times, sattr and flags */ unix_convert(fname,conn,0,&bad_path,&sbuf); |