Displaying 4 results from an estimated 4 matches for "smbc_statvf".
Did you mean:
smbc_statvfs
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
2020 May 25
2
Question about smbc_stat() and smbc_statvfs() in libsmbclient
...> printf("Owner='%s'\n", path, buf);
> smbc_getxattr(path, group_attr, buf, sizeof(buf)) < 0)
> printf(?Group=%s\n?, buf);
(And then manually translating the username & group in but to an uid/gid - so I can work around it but it?s annoying anyway :-)
Also, the smbc_statvfs() function assigns the ?f_frsize? to some silly value (2 for me) instead of a more realistic value. I?m assuming this is because that value never is sent over the ?wire??
- Peter
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 of all the different and quite frankly confusing/frustrating tools to manage ACL
2014 Feb 20
1
Samba 4.1.4 on Solaris 10 fails linking 'default/examples/libsmbclient/teststatvfs'
...bol 'global_in_nmbd' has differing sizes:
(file /usr/sfw/lib/libsmbclient.so value=0x4; file default/source3/libgse.so value=0x1);
/usr/sfw/lib/libsmbclient.so definition taken
Undefined first referenced
symbol in file
smbc_statvfs default/examples/libsmbclient/teststatvfs_19.o
ld: fatal: symbol referencing errors. No output written to /opt/local/src/etc/samba-4.1.4/bin/default/examples/libsmbclient/teststatvfs
collect2: ld returned 1 exit status
Waf: Leaving directory `/opt/local/src/etc/samba-4.1.4/b...