Smbfs fix
- From: "Andrew V. Samoilov" <andrew email zp ua>
- To: mc-devel gnome org
- Subject: Smbfs fix
- Date: Fri, 22 Oct 2004 21:20:54 +0300 (EEST)
Hi,
after this patch files can be edited with external editor over smbfs.
--
Regards,
Andrew V. Samoilov.
vfs/ChangeLog:
* smbfs.c (smbfs_open_readwrite): Comment out flags games,
it is cli_open() headache.
--- mc/vfs/smbfs.c~ Mon Oct 18 11:37:14 2004
+++ mc/vfs/smbfs.c Wed Oct 20 15:59:45 2004
@@ -1751,11 +1751,14 @@ smbfs_open_readwrite (smbfs_handle *remo
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]