Displaying 8 results from an estimated 8 matches for "unixerror".
Did you mean:
unix_error
2002 Feb 19
1
Typo fix for samba 2.2.3a source/smbd/trans2.c
Just a couple of quick fixes for trans2.c and README in samba-2.2.3a.
--- source/smbd/trans2.c.old Tue Feb 5 14:37:55 2002
+++ source/smbd/trans2.c Wed Feb 20 10:26:16 2002
@@ -2062,7 +2062,7 @@
if(!S_ISLNK(sbuf.st_mode))
return(UNIXERROR(ERRSRV,ERRbadlink));
#else
- return(UNIXERROR(ERRDOS,ErrNotALink));
+ return(UNIXERROR(ERRDOS,ERRbadlink));
#endif
len =
conn->vfs_ops.readlink(conn,dos_to_unix(fullpathname,False), buffer,
sizeof(pstring)-1); /* read link...
1999 Jul 02
1
preexec: return code not used? (PR#18576)
T.D.Lee@durham.ac.uk wrote:
>
>
> But we'd like to go one step further and have the return code from preexec
> be used to continue or abort the connection being established. The script
> above would be modified to generate this return code.
>
> Looking through the source code (smbd/service.c), it doesn't seem to check
> the return code (calling smbrun to do the
2002 Mar 01
1
PATCH - smbd/trans2.c to support writing to Unix named pipes(FIFO)
...CHECK_FSP(fsp,conn);
fname = fsp->fsp_name;
if (vfs_fstat(fsp,fsp->fd,&sbuf) != 0) {
DEBUG(3,("fstat of fnum %d failed (%s)\n",fsp->fnum,
strerror(errno)));
return(UNIXERROR(ERRDOS,ERRbadfid));
}
if((pos = fsp->conn->vfs_ops.lseek(fsp,fsp->fd,0,SEEK_CUR)) == -1)
return(UNIXERROR(ERRDOS,ERRnoaccess));
de...
2019 Aug 05
2
[PATCH 2/2] Rust bindings: Implement callback handlers
...rust/src/error.rs
@@ -20,6 +20,7 @@ use crate::base;
use crate::utils;
use std::convert;
use std::ffi;
+use std::io;
use std::os::raw::{c_char, c_int};
use std::str;
@@ -41,6 +42,7 @@ pub enum Error {
API(APIError),
IllegalString(ffi::NulError),
Utf8Error(str::Utf8Error),
+ UnixError(io::Error, &'static str),
Create,
}
@@ -56,6 +58,10 @@ impl convert::From<str::Utf8Error> for Error {
}
}
+pub(crate) fn unix_error(operation: &'static str) -> Error {
+ Error::UnixError(io::Error::last_os_error(), operation)
+}
+
impl<'a> base...
2007 Nov 16
1
3.0.27a out monday.
Just spoke to Jerry, we'll be doing
a 3.0.27a on Monday to fix a regression
that broke smbfs mounts from Linux.
Sorry for the problem.
Jeremy.
2019 Aug 05
3
Re: [PATCH] Rust bindings: Implement Event features
I fixed based on comments.
I'll send these two patches to this mailing list.
- Fix Handle -> Handle<'a>
- Add events
Regards,
Hiroyuki
2019年8月1日(木) 0:01 Pino Toscano <ptoscano@redhat.com>:
> Hi Hiroyuki,
>
> On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote:
> > This patch includes:
> >
> > - Event callback handlers
> > -
2019 Jul 30
4
[PATCH] Rust bindings: Implement Event features
...rust/src/error.rs
@@ -20,6 +20,7 @@ use crate::base;
use crate::utils;
use std::convert;
use std::ffi;
+use std::io;
use std::os::raw::{c_char, c_int};
use std::str;
@@ -41,6 +42,7 @@ pub enum Error {
API(APIError),
IllegalString(ffi::NulError),
Utf8Error(str::Utf8Error),
+ UnixError(io::Error, &'static str),
Create,
}
@@ -56,7 +58,11 @@ impl convert::From<str::Utf8Error> for Error {
}
}
-impl base::Handle {
+pub(crate) fn unix_error(operation: &'static str) -> Error {
+ Error::UnixError(io::Error::last_os_error(), operation)
+}
+
+im...
2003 Dec 01
0
No subject
...tsize=%d\n",
fsp->fnum, (int)smb_mincnt, (int)smb_maxcnt, (int)outsize ) );
}
END_PROFILE(SMBreadX);
return -1;
} else
{
/* normal case as before */
nread = read_file(fsp,data,startpos,smb_maxcnt);
if (nread < 0) {
END_PROFILE(SMBreadX);
return(UNIXERROR(ERRDOS,ERRnoaccess));
}
SSVAL(outbuf,smb_vwv5,nread);
SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
SSVAL(smb_buf(outbuf),-2,nread);
DEBUG( 3, ( "readX fnum=%d min=%d max=%d nread=%d\n",
fsp->fnum, (int)smb_mincnt, (int)smb_maxcnt, (int)nread ) );
END_PROFIL...