SAMBA 2.2.5 inconsistent default_vfs_ops.open with notepad
AEsh at tricord.com
Tue Jul 16 14:16:02 GMT 2002
The first code example doesn't return fd. The second example does.
The first code probably works with the hardcoded value because it happens to
return with a zero in the right position on the stack, which looks like a
NULL to the calling code, which causes it to produce the error message.
From: troutb at abclabs.com [mailto:troutb at abclabs.com]
Sent: Tuesday, July 16, 2002 3:46 PM
To: samba-technical at lists.samba.org
Subject: VFS: SAMBA 2.2.5 inconsistent default_vfs_ops.open with notepad
If a file does not exists the following code fails and cause windows to
fd = default_vfs_ops.open(conn,inname,flags,mode);
This code works as expected returning a message to windows "does exist do
( these call would have following parameter values:
inname = x.txt
flags = 2
mode = 436
if you hard code the flags parameter to 66 the first bit of code works. ??
Can anyone shed some light on this.
by the way ... I have found that cut/paste or winword don't do this!
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba-technical