| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Patch from TAKEDA Yasuma <yasuma@osstech.co.jp>.
Guenther
(cherry picked from commit 9fa042bb9f71057fc869e37d4cc180e8a772b1bb)
(cherry picked from commit a01f0a4025d382c1bc82f4992ea4566db4df3818)
|
|
|
|
|
|
|
|
| |
Thanks to Jeffrey Riaboy <dakusan@castledragmire.com>.
Guenther
(cherry picked from commit 2b1fe2c98f4e0013dee4cbae62dc36cdd4085c7d)
(cherry picked from commit 5d9844f0d08419aea63c2f6d82a7c78f220541ff)
|
|
|
|
|
|
|
|
|
|
| |
- DFS is not a POSIX feature, so the state of that bit should be zero if DFS
is *not* supported. Bit feature reversed.
- Added smbc_statvfs function
Derrell
(cherry picked from commit 0697cffe211a922c816b6c75230c4186328498ed)
|
|
|
|
|
|
|
|
| |
- Fill in the remainder of the data (or at least as much as we can get) for
the fstatvfs return value.
Derrell
(cherry picked from commit eeeceea8b92b8b814209f496a7ab953dcd0a8367)
|
|
|
|
|
|
|
|
|
|
| |
- Reverse the sense of the flags. Since the fstatvfs() function on POSIX-like
systems would almost certainly indicate case sensitivity (for example),
leave the bit turned off if the result is the POSIX-like result just as if
issued on a typical local file system on a POSIX system.
Derrell
(cherry picked from commit 0acc962e3968253a3f64b5a92def177ced44994d)
|
|
|
|
|
|
|
|
| |
- Complete the implementation of the f_flag field. We now return a flag
indicatin UNIX CIFS, CASE SENSITIVE, and/or DFS support.
Derrell
(cherry picked from commit df15e8f84d108f8e9df1408155b0f9ccc44da3fe)
|
|
|
|
|
|
|
|
|
|
| |
- Add initial test implementation. This works on a Linux client to determine
whether a connection's server supports UNIX CIFS. I'm eager to see what the
build farm has to say about this, specifically how many, if any, hosts don't
provide a statvfs.h file with the requisite struct statvfs.
Derrell
(cherry picked from commit ff6a1bebd589637a4aecb9c76b4e33f579d7b0df)
|
|
|
|
|
|
|
|
|
| |
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
(cherry picked from commit 2e09746a4db4186c9d648370b9004971bc18e5c9)
|
|
|
|
| |
This reverts commit a1bf1f1819ab184682327583d05b0258db8856ef.
|
|
|
|
|
|
|
|
|
|
| |
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.
Karolin
(cherry picked from commit 73875cd344608b591fa884ab99b5f3a10550c149)
(cherry picked from commit e273c07e94ee607bbf05b6fa66cf3cea13fe4502)
|
|
|
|
|
| |
Guenther
(cherry picked from commit 6a2d15f1de9fb7b93a31129139dea667303393db)
|
|
|
|
|
|
|
|
| |
in fset_nt_acl().
Need to watch the build farm to make sure I haven't broken the AIX or Solaris ACL modules.
Jeremy.
(cherry picked from commit 3869464895d51588ed156606051812efb26755a9)
|
|
|
|
|
|
|
|
| |
build
Michael
(cherry picked from commit fe62098666a16b31b025867f273d407e77152c4c)
(cherry picked from commit 9a4d8c2942a6c790e751f94e8b3fcee53ce2f3e9)
|
|
|
|
|
|
|
|
| |
Without needing to install libsmbclient to /usr/local/samba first.
Michael
(cherry picked from commit f0e47bce2e98131812e96fb88cc3d1fe939e8d6c)
(cherry picked from commit b51cf452174fa02b79f0572226885496da19f36f)
|
|
|
|
|
|
| |
Michael
(cherry picked from commit 28688cfd57c322937f2c63087380c377bd961018)
(cherry picked from commit 0c32f449915dd98cefa9171f2a7f917d15afe7c2)
|
|
|
|
|
|
| |
There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed).
Jeremy.
(cherry picked from commit cb49b48e5cb1d8530292bac41052ef163fddec43)
|
|
|
|
|
|
|
|
|
| |
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.
|
|
|
|
|
| |
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
|
|
|
|
|
|
|
|
|
| |
smbsh.c is located in the examples directory. It does not make sense
to install a man page without installing the tool itself.
This fixes bug #4724.
Karolin
|
|
|
|
| |
Thanks to Miguel Medalha <miguelmedalha@sapo.pt> for pointing this out
|
|
|
|
|
|
| |
- Add code to test whether smbc_stat() munges future smbc_getxattr() results.
Derrell
|
|
|
|
|
|
| |
- talloc and tdb have been moved to separate libraries. Link with those.
Derrell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this can only be done via fset_nt_acl() using an open
file/directory handle. I'd like to do the same with
get_nt_acl() but am concerned about efficiency
problems with "hide unreadable/hide unwritable" when
doing a directory listing (this would mean opening
every file in the dir on list).
Moving closer to rationalizing the ACL model and
maybe moving the POSIX calls into a posix_acl VFS
module rather than having them as first class citizens
of the VFS.
Jeremy.
|
|
|
|
|
|
| |
Now all those redundant fd's have vanished from the VFS API.
Michael
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
|
| |
- Ensured that all public functions have documentation in libsmbclient.h
- Reformatted for "proper" indentation
- Re-added temporarily-disabled alternate authentication function capability
Derrell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The libsmbclient interface has suffered from difficulty of improvement and
feature enrichment without causing ABI breakage. Although there were a number
of issues, the primary ones were:
(a) the user of the library would manually manipulate the context structure
members, meaning that nothing in the context structure could change other
than adding stuff at the end;
(b) there were three methods of setting options: setting bits in a flags field
within the context structure, setting explicit options variables within an
options structure in the context structure, and by calling the
smbc_option_set() function;
(c) the authentication callback did not traditionally provide enough
information to the callee which required adding an option for a callback
with a different signature, and now there are requests for even more
information at the callback, requiring yet a third signature and option to
set it (if we implement that feature).
This commit provides a reorganization of the code which fixes (a) and (b).
The context structure is now entirely opaque, and there are setter and getter
functions for manipulating it. This makes maintaining ABI consistency much,
much easier.
Additionally, the options setting/getting has been unified into a single
mechanism using smbc_option_set() and smbc_option_get().
Yet to be completed is a refactoring of the authentication callback (c).
The test programs in examples/libsmbclient have been modified (if necessary;
some applications require no changes at all) for the new API and a few have
been minimally tested.
Derrell
|
|
|
|
| |
Karolin
|
| |
|
|
|
|
| |
Guenther
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
handle FS capabilities.
As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
result for a file.
This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.
That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.
|
|/
|
|
|
|
|
| |
testwrite: create or truncate a file and write to it.
teststat3: compare the results from smbc_stat() and smbc_fstat()
Derrell
|
|
|
|
|
| |
NEEDS MORE TESTING !
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
| |
There's been a problem seen where open/read/close a number of times causes
open failures eventually. This program has been modified to create the
context once and then loop requesting file names to open/read/close.
This program also demonstrates the current error in cli_read() where it
returns an error instead of length 0 upon end of file.
Derrell
|
|
|
|
|
| |
GetTimeOfDay() seems to no longer be exported. For the smbsh example, just
use the native gettimeofday() for now.
|
| |
|
|\ |
|
| |
| |
| |
| | |
Michael
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When the capability of using full names for DOS attributes was added, a bug
was introduced which caused the wrong number of bytes to be returned. This
patch to smbc_listxattr_ctx() fixes the problem.
Thanks to Jack Schmidt for this patch.
Derrell
|
|/ |
|
|
|
|
| |
Michael
|
|
|
|
| |
Michael
|
|
|
|
| |
Michael
|
|
|
|
| |
Michael
|
|
|
|
| |
Guenther
|