mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* smbfs.c (smbfs_open_readwrite): Comment out flags games,
it is cli_open() headache.
This commit is contained in:
parent
8da4a08bbd
commit
2c8db2c43d
@ -1,3 +1,8 @@
|
||||
2004-10-25 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* smbfs.c (smbfs_open_readwrite): Comment out flags games,
|
||||
it is cli_open() headache.
|
||||
|
||||
2004-10-23 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* README: Add explanation for using GPL licensed code from
|
||||
|
@ -1751,11 +1751,14 @@ smbfs_open_readwrite (smbfs_handle *remote_handle, char *rname, int flags, int m
|
||||
DEBUG (3, ("smbfs_open: O_TRUNC\n"));
|
||||
|
||||
remote_handle->fnum =
|
||||
#if 1 /* Don't play with flags, it is cli_open() headache */
|
||||
cli_open (remote_handle->cli, rname, flags, DENY_NONE);
|
||||
#else /* What's a reasons to has this code ? */
|
||||
cli_open (remote_handle->cli, rname, ((flags & O_CREAT)
|
||||
|| (flags ==
|
||||
(O_WRONLY | O_APPEND))) ?
|
||||
flags : O_RDONLY, DENY_NONE);
|
||||
|
||||
#endif
|
||||
if (remote_handle->fnum == -1) {
|
||||
message (1, MSG_ERROR, _(" %s opening remote file %s "),
|
||||
cli_errstr (remote_handle->cli), CNV_LANG (rname));
|
||||
|
Loading…
Reference in New Issue
Block a user