Displaying 9 results from an estimated 9 matches for "smbc_stat".
2020 May 25
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
I?ve been writing some code that uses libsmbclient to talk to SMB servers and I?m a little bit confused why ?smbc_stat()? sets the
st_uid & st_gid to the uid & gid of the process calling it, instead of trying to map the real owner & group of the path or setting it to -1:-1 if it can?t do that...
But there is probably some good reason for this?
Ie, if I call something like this:
> main() {
> st...
2020 May 27
0
Question about smbc_stat() and smbc_statvfs() in libsmbclient
On Mon, May 25, 2020 at 11:36:18PM +0200, Peter Eriksson via samba wrote:
> I?ve been writing some code that uses libsmbclient to talk to SMB servers
> and I?m a little bit confused why ?smbc_stat()? sets the
> st_uid & st_gid to the uid & gid of the process calling it,
> instead of trying to map the real owner & group of the path or setting it to -1:-1 if it can?t do that...
>
> But there is probably some good reason for this?
That's really old code that was de...
2020 May 28
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
Re: the smbc_stat() returning wrong st_uid/st_gid: Yeah, I get why it?s difficult, but perhaps it should just return -1/-1 instead? It too is wrong but probably less confusing than seeing the local user?s uid/gid there??
Anyway, I?ve been working on a ?grand unifying :-)? ACL managing (CLI) tool since I got tired o...
2002 Nov 03
0
libsmbclient bug ?
Hello,
I've tried using libsmbclient from the 2.2.6 samba package (on a slackware 8.1,
compiled --with-libsmbclient --with-sendfile-support --enable-debug (without
debug also) ) and it segfaults when I call smbc_stat() (or smbc_fstat() ) on a
file. I'm sorry I'm not able to find out the problem with gdb, the output (with
the library compiled with debugging enabled) is:
--------------------
Starting program: /.tmp/tst
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb)
-----...
2020 Sep 07
4
NT_STATUS_NETWORK_SESSION_EXPIRED
...r, no issues
seen. Everything appears to be working.
Linux desktops map shares using GVFS `gio mount` command and
authenticate with user's kerberos ticket.
After 10 hours or so, the gio mounts become inaccessible. GNOME
Nautilus gives error "invalid argument".
GVFS debug log shows
smbc_stat(smb://fileserver.domain.co.uk/share)
SMBC_getatr: sending qpathinfo
map_errno_from_nt_status: 32 bit codes: code=c000035c
smbc errno NT_STATUS_NETWORK_SESSION_EXPIRED -> 22
smb: send_reply(0x7fb930002840), failed=1 (Invalid argument)
smb: backend_dbus_handler org.gtk.vfs.Mount:QueryInfo (pid=247...
2020 Sep 07
0
NT_STATUS_NETWORK_SESSION_EXPIRED
...rking.
>
> Linux desktops map shares using GVFS `gio mount` command and
> authenticate with user's kerberos ticket.
>
> After 10 hours or so, the gio mounts become inaccessible. GNOME
> Nautilus gives error "invalid argument".
>
> GVFS debug log shows
>
> smbc_stat(smb://fileserver.domain.co.uk/share)
> SMBC_getatr: sending qpathinfo
> map_errno_from_nt_status: 32 bit codes: code=c000035c
> smbc errno NT_STATUS_NETWORK_SESSION_EXPIRED -> 22
> smb: send_reply(0x7fb930002840), failed=1 (Invalid argument)
> smb: backend_dbus_handler org.gtk.vfs...
2020 Sep 07
0
NT_STATUS_NETWORK_SESSION_EXPIRED
...g.
>
> Linux desktops map shares using GVFS `gio mount` command and
> authenticate with user's kerberos ticket.
>
> After 10 hours or so, the gio mounts become inaccessible. GNOME
> Nautilus gives error "invalid argument".
>
> GVFS debug log shows
>
> smbc_stat(smb://fileserver.domain.co.uk/share)
> SMBC_getatr: sending qpathinfo
> map_errno_from_nt_status: 32 bit codes: code=c000035c
> smbc errno NT_STATUS_NETWORK_SESSION_EXPIRED -> 22
> smb: send_reply(0x7fb930002840), failed=1 (Invalid argument)
> smb: backend_dbus_handler org.gtk.vfs...
2020 Jan 28
0
[Announce] Samba 4.11.6 Available for Download
...ary Lockyer <gary at catalyst.net.nz>
* BUG 14199: upgradedns: Ensure lmdb lock files linked.
o Anoop C S <anoopcs at redhat.com>
* BUG 14182: s3: VFS: glusterfs: Reset nlinks for symlink entries during
readdir.
o Andreas Schneider <asn at samba.org>
* BUG 14101: smbc_stat() doesn't return the correct st_mode and also the
uid/gid is not filled (SMBv1) file.
* BUG 14219: librpc: Fix string length checking in
ndr_pull_charset_to_null().
o Martin Schwenke <martin at meltin.net>
* BUG 14227: ctdb-scripts: Strip square brackets when gathering c...
2020 Jan 23
0
[Announce] Samba 4.10.13 Available for Download
...oopcs at redhat.com>
* BUG 14182: s3: VFS: glusterfs: Reset nlinks for symlink entries during
readdir.
o Christof Schmitt <cs at samba.org>
* BUG 14140: wscript: Remove checks for shm_open and shmget.
o Andreas Schneider <asn at samba.org>
* BUG 14101: libsmbclient: smbc_stat() doesn't return the correct st_mode
and also the uid/gid is not filled (SMBv1).
* BUG 14168: replace: Only link libnsl and libsocket if required.
* BUG 14219: librpc: Fix string length checking in
ndr_pull_charset_to_null().
o Uri Simchoni <uri at samba.org>
* BUG 13...