search for: smb_vfs_next_lstat

Displaying 4 results from an estimated 4 matches for "smb_vfs_next_lstat".

2011 Apr 03
1
Scannedonly: Unable to compile on Samba v3.5.8 [scannedonly.so] Error 1
...just 2 vfs_scannedonly.c: In function ?scannedonly_stat?: vfs_scannedonly.c:671: error: ?SMB_VFS_NEXT_STAT? undeclared (first use in this function) vfs_scannedonly.c:687:56: error: macro "SMB_VFS_NEXT_STAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c:703:45: error: macro "SMB_VFS_NEXT_LSTAT" passed 3 arguments, but takes just 2 vfs_scannedonly.c: In function ?scannedonly_lstat?: vfs_scannedonly.c:703: error: ?SMB_VFS_NEXT_LSTAT? undeclared (first use in this function) vfs_scannedonly.c:719:57: error: macro "SMB_VFS_NEXT_LSTAT" passed 3 arguments, but takes just 2 vfs_sc...
2024 Jun 10
2
4.20: case (in)sensitive is broken
...Jeremy. diff --git a/source3/modules/vfs_widelinks.c b/source3/modules/vfs_widelinks.c index c5b5084e108..f3c9f0e359c 100644 --- a/source3/modules/vfs_widelinks.c +++ b/source3/modules/vfs_widelinks.c @@ -383,8 +383,14 @@ static int widelinks_openat(vfs_handle_struct *handle, } lstat_ret = SMB_VFS_NEXT_LSTAT(handle, full_fname); - if (lstat_ret != -1 && - VALID_STAT(full_fname->st) && + if (lstat_ret == -1) { + /* Can't be a DFS link. */ + int saved_errno = errno; + TALLOC_FREE(full_fname); + errno = saved_errno; + return -1; + } + if (VALID_STAT(full_fna...
2024 Jun 11
1
4.20: case (in)sensitive is broken
...widelinks.c b/source3/modules/vfs_widelinks.c > index c5b5084e108..f3c9f0e359c 100644 > --- a/source3/modules/vfs_widelinks.c > +++ b/source3/modules/vfs_widelinks.c > @@ -383,8 +383,14 @@ static int widelinks_openat(vfs_handle_struct *handle, > ???????? } > ???????? lstat_ret = SMB_VFS_NEXT_LSTAT(handle, > ???????????????? full_fname); > -??????? if (lstat_ret != -1 && > -??????????? VALID_STAT(full_fname->st) && > +??????? if (lstat_ret == -1) { > +??????????? /* Can't be a DFS link. */ > +??????????? int saved_errno = errno; > +??????????? TALL...
2024 Jun 07
1
4.20: case (in)sensitive is broken
07.06.2024 20:52, Jeremy Allison wrote: > Fair enough. Can you post a minimal smb.conf and directory > setup that reproduces the problem and how to demo it with smbclient > command lines please ? I know I'm asking to be spoon-fed but my time for > Samba these days is quite limited and this would aid immensely > in creating a properly tested fix. You're not asking to be