search for: wval

Displaying 5 results from an estimated 5 matches for "wval".

Did you mean: val
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...(server->err == ERRnofiles)) + break; + if (smb_retry(server)) + goto retry; + goto unlock_return; + } + p = SMB_VWV(server->packet); + count = WVAL(p, 0); + if (count <= 0) + break; + + result = -EIO; + bcc = WVAL(p, 2); + if (bcc != count * SMB_DIRINFO_SIZE + 3) + goto unlock_return; + p += 7; + + /* Read the last...
2000 Mar 20
0
smbfs patch - listing large direcories from an OS/2 server
...st bit */ - mask_len = 0; - mask[0] = 0; - command = TRANSACT2_FINDNEXT; #ifdef SMBFS_DEBUG_VERBOSE printk("smb_proc_readdir_long: handle=0x%X, mask=%s\n", @@ -1666,15 +1665,29 @@ ff_dir_handle = WVAL(resp_param, 0); ff_searchcount = WVAL(resp_param, 2); ff_eos = WVAL(resp_param, 4); + ff_lastname = WVAL(resp_param, 8); } else { ff_searchcount = WVAL(resp_param, 0);...
2005 Mar 25
2
[2.6 patch] fs/smbfs/request.c: fix NULL dereference
The Coverity checker found that if req was NULL because find_request returned NULL, this resulted in a break from the switch, but req was later dereferenced (look at the last line of this patch). Signed-off-by: Adrian Bunk <bunk@stusta.de> --- linux-2.6.12-rc1-mm2-full/fs/smbfs/request.c.old 2005-03-25 00:45:08.000000000 +0100 +++ linux-2.6.12-rc1-mm2-full/fs/smbfs/request.c 2005-03-25
1998 Sep 04
0
Linux SMB Mount utils patch
...ine _LINUX_SMB_FS_H + +#include <linux/smb.h> + +/* + * ioctl commands + */ +#define SMB_IOC_GETMOUNTUID _IOR('u', 1, __kernel_uid_t) +#define SMB_IOC_NEWCONN _IOW('u', 2, struct smb_conn_opt) + +#ifdef __KERNEL__ + +#include <asm/unaligned.h> + +#define WVAL(buf,pos) \ +(le16_to_cpu(get_unaligned((__u16 *)((__u8 *)(buf) + (pos))))) +#define DVAL(buf,pos) \ +(le32_to_cpu(get_unaligned((__u32 *)((__u8 *)(buf) + (pos))))) +#define WSET(buf,pos,val) \ +put_unaligned(cpu_to_le16((__u16)(val)), (__u16 *)((__u8 *)(buf) + (pos))) +#define DSET(buf,pos,val) \ +...
2003 Dec 01
0
No subject
...ig/fs/smbfs/proc.c linux-2.2.20-pre2-smbfs/fs/smbfs/proc.c --- linux-2.2.20-pre2-orig/fs/smbfs/proc.c Sun Apr 29 13:39:23 2001 +++ linux-2.2.20-pre2-smbfs/fs/smbfs/proc.c Thu May 24 22:46:03 2001 @@ -890,8 +890,6 @@ /* smb_vwv2 has mtime */ /* smb_vwv4 has size */ ino->u.smbfs_i.access = (WVAL(server->packet, smb_vwv6) & SMB_ACCMASK); - if (!(wish & (O_WRONLY | O_RDWR))) - ino->u.smbfs_i.access = SMB_O_RDONLY; ino->u.smbfs_i.open = server->generation; out: Return-Path: <Konfuzius73@t-online.de> Delivered-To: samba@lists.samba.org Received: from mailout02....