mirror of
https://github.com/samba-team/samba.git
synced 2025-11-29 16:23:52 +03:00
Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context structure fields to generate warnings. This creates a scenario with the best of all worlds. I'm able to move to an organization that more easily allows future enhancements, while avoiding any mandatory changes by applications. Thanks, James! - Updated WHATSNEW.txt so that it accurately reflects the current state of affairs. Derrell
This commit is contained in:
@@ -157,7 +157,7 @@ SMBC_stat_ctx(SMBCCTX *context,
|
||||
}
|
||||
|
||||
if (!user || user[0] == (char)0) {
|
||||
user = talloc_strdup(frame,context->config.user);
|
||||
user = talloc_strdup(frame, smbc_getUser(context));
|
||||
if (!user) {
|
||||
errno = ENOMEM;
|
||||
TALLOC_FREE(frame);
|
||||
@@ -237,7 +237,7 @@ SMBC_fstat_ctx(SMBCCTX *context,
|
||||
|
||||
if (!file->file) {
|
||||
TALLOC_FREE(frame);
|
||||
return (context->posix_emu.fstatdir_fn)(context, file, st);
|
||||
return smbc_getFunctionFstatdir(context)(context, file, st);
|
||||
}
|
||||
|
||||
/*d_printf(">>>fstat: parsing %s\n", file->fname);*/
|
||||
|
||||
Reference in New Issue
Block a user