summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsmbbrowse.c
Commit message (Collapse)AuthorAgeFilesLines
* smb: Ignore EINVAL for kerberos/ccache loginOndrej Holy2022-04-131-2/+8
| | | | | | | | With samba 4.16.0, mount operation fails with the "Invalid Argument" error when kerberos/ccache is misconfigured. Ignore this error, so user get a chance to login using the password... Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/611
* daemon: Set G_FILESYSTEM_PREVIEW_TYPE_NEVER in browse backendsAntónio Fernandes2021-01-221-0/+1
| | | | | | | These backends are special and their "files" are links to locations from other backends. I doesn't make sense to preview them. https://gitlab.gnome.org/GNOME/gvfs/-/issues/497
* Use shorter strings for prompt dialog titlesJonas Dreßler2021-01-151-3/+13
| | | | | | | | | | | | | The layout of the modal dialogs in gnome-shell changed [1] and the title now is larger and uses the style of a headline. Make sure all titles remain fully visible and use shorter strings for those. Also unify the generic "Enter password" strings a bit to make work easier for translators and use this string for most cases: "Authentication Required\nEnter password for “%s”:" [1] https://gitlab.gnome.org/GNOME/gnome-shell/issues/1343
* smbbrowse: Force NT1 protocol version for workgroup supportOndrej Holy2018-09-211-0/+42
| | | | | | | | | | | | "Windows Network" doesn't work with recent samba versions, because "client max protocol" has been changed from NT1 to SMB3 recently. NT1 is mandatory for workgroup support. Let's force NT1 using the newly added smbc_setOptionProtocols API if available. But force this only when neither hostname, nor IP address is used. This among others prevents complete breakage if NT1 is disabled on server. Use GResolver to implement this heuristic. https://bugzilla.gnome.org/show_bug.cgi?id=780958
* smb: Do not claim that mountable can be unmountedOndrej Holy2018-07-241-8/+3
| | | | | | | | | | | G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT is set to TRUE, but unmount_mountable() is not implemented. Set the attribute always to FALSE in order to prevent errors from g_file_unmount_mountable_with_operation(). Nautilus should seamleassly use g_mount_unmount_with_operation() if the attribute is set to FALSE. Closes: https://gitlab.gnome.org/GNOME/gvfs/issues/15
* smb: Remove entry_errno struct memberBastien Nocera2018-02-281-5/+0
| | | | | | It's set, but not used anywhere. https://bugzilla.gnome.org/show_bug.cgi?id=793923
* smbbrowse: Avoid "Error: Success" failure messagesBastien Nocera2018-02-281-3/+7
| | | | | | | | | Save the failed errno as soon as possible to avoid "Error: Success" type of messages. Updated by Ondrej Holy <oholy@redhat.com>. https://bugzilla.gnome.org/show_bug.cgi?id=793515
* Do not sent user invisible mounts if not neededOndrej Holy2017-06-061-1/+1
| | | | | | | | | | | g_volume_monitor_get() might be really slow if there is too many mounts, because the list of the mounts is send over D-Bus. It can simply happen due to user invisible mounts, e.g. http. User invisible mounts are ignored by the volume monitor, so it is useless to send them over D-Bus. Improve the D-Bus API and don't send the user invisible mounts if it is not needed. https://bugzilla.gnome.org/show_bug.cgi?id=775600
* smb: Drop custom GString functionalityOndrej Holy2016-11-161-50/+4
| | | | | | | | | Replace custom g_string_append_encoded() by g_string_append_uri_escaped(). The functions are identical except additional UTF-8 support, which can be simply disabled by allow_utf8 parameter. The custom function was used probably because the g_string_append_uri_escaped has been added later. https://bugzilla.gnome.org/show_bug.cgi?id=604116
* smbbrowse: Fix IPv6 handlingOndrej Holy2016-11-161-26/+11
| | | | | | | | IPv6 server includes brackets in GMountSpec, smbclient doesn't. Commit 4012d70 fixed IPv6 handling for SMB backend. Share and use the modified create_smb_uri() function in order to fix the IPv6 handling. https://bugzilla.gnome.org/show_bug.cgi?id=604116
* Use Unicode in translatable stringsPiotr Drąg2016-10-031-4/+4
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772219
* daemon: Set G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE attributeOndrej Holy2016-06-281-0/+1
| | | | | | | Mark all network-based backends as remote. This is useful to remove some hardcoded lists of filesystem types in GTK+. Bump required GLib version accordingly.
* smbbrowse: Be quiet by defaultOndrej Holy2016-01-181-47/+34
| | | | | | | Since daemons' stdout and stderr goes into the journal, make it quiet by default by using the existing debug logging mechanism. https://bugzilla.gnome.org/show_bug.cgi?id=740660
* Unify strings to ease translationFelix Möller2015-08-051-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=657906
* Set filesystem::type for all backendsRoss Lagerwall2015-08-041-0/+13
| | | | | | | This attribute was being set inconsistently, and is used by the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=752834
* smb: Remove old compatibility ifdefsRoss Lagerwall2014-10-231-4/+0
| | | | | Remove old compatibility ifdefs left over from ad521f604df7 ("Require libsmbclient from Samba 3.4.0 or higher").
* Require libsmbclient from Samba 3.4.0 or higherRoss Lagerwall2013-12-051-1/+0
| | | | | | Also remove the old libsmb-compat.h header file. https://bugzilla.gnome.org/show_bug.cgi?id=573837
* smb: Add support for specifying custom portTomas Bzatek2013-05-281-4/+31
| | | | | | | | | | Thanks to the work by Jeremy Allison we should be able to connect to a non-standard port through new enough Samba version. This patch adds a port argument to smburi parser and both smb and smb-browse backends. https://bugzilla.gnome.org/show_bug.cgi?id=698071
* smb: More verbosity for easier debuggingTomas Bzatek2013-02-081-8/+30
| | | | | | | | This adds more debugging output for both smb and smb-browse backends and also brings more verbosity for user-visible error messages. Changes made to be able to debug weird samba issues remotely: https://bugzilla.gnome.org/show_bug.cgi?id=691863
* Use g_list_free_full() where applicableTomas Bzatek2013-01-171-6/+3
|
* Add symbolics support to the backendsWilliam Jon McCann2012-08-301-3/+27
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681458
* Spelling correction "filesystem" -> "file system"Felix Möller2012-07-311-1/+1
| | | | | | | Unify the spelling. For the discussion see: https://bugzilla.gnome.org/show_bug.cgi?id=520902 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Update the Address of the FSFFelix Möller2012-07-301-2/+2
| | | | | | | | | | | | | | | Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Explicitly intialize mutexes on stackTomas Bzatek2011-11-141-0/+3
| | | | | | Turned out zeroing memory is not enough in some cases so let's be on the safe side and properly initialize all non-static mutexes. Also, don't initialize/clear the static ones.
* Adapt to glib mutex API changesTomas Bzatek2011-10-251-21/+18
| | | | A continuation to https://bugzilla.gnome.org/show_bug.cgi?id=661148
* Port daemons to GSettingsTomas Bzatek2010-11-121-30/+15
|
* Move GConf initialization from backend constructorTomas Bzatek2010-09-081-23/+24
| | | | Solve the deadlock described in bug 628889
* Use FAILED_HANDLED error code when user abortsBenjamin Otte2009-10-121-1/+1
| | | | | | | | This allows Nautilus to check for FAILED_HANDLED and not displaying an error dialog to the user. Users don't like error dialogs thatdo nothing but tell them what they just did. Partial fix for https://bugzilla.gnome.org/show_bug.cgi?id=594495
* Avoid crash when printf function is called with a NULL string. FixesBrian Cameron2009-10-091-1/+1
| | | | bug #580825.
* smb-browse: fake content type to allow query default handlerTomas Bzatek2009-08-061-0/+2
| | | | | Hardcode the "inode/directory" content-type Fixes #573994
* Always use g_strerrorPaolo Borelli2009-02-241-2/+2
| | | | | | | | | | | | | | 2009-02-24 Paolo Borelli <pborelli@katamail.com> * test/benchmark-posix-small-files.c: * test/benchmark-posix-big-files.c: * daemon/trashlib/dirwatch.c: * daemon/gvfsbackendsmbbrowse.c: * client/gvfsfusedaemon.c: Always use g_strerror svn path=/trunk/; revision=2247
* SMB browsing authentication support (#524485) Make smb-browse backend notTomas Bzatek2009-01-061-21/+303
| | | | | | | | | | | | | | 2009-01-06 Tomas Bzatek <tbzatek@redhat.com> * daemon/gvfsbackendnetwork.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/smb-browse.mount.in: SMB browsing authentication support (#524485) Make smb-browse backend not automounted Mount smb root on network backend automount svn path=/trunk/; revision=2158
* Make mounts/backends have a GIcon not a icon nameAlexander Larsson2008-12-011-8/+3
| | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * common/gmounttracker.[ch]: * daemon/gvfsbackend.[ch]: Make mounts/backends have a GIcon not a icon name * daemon/gvfsbackendsftp.c: Support /etc/favicon.png * daemon/gvfsbackendsmbbrowse.c: Simplify some code with the new GIcon support Patch from David Zeuthen (#557540) svn path=/trunk/; revision=2113
* Use g_set_error_literal where appropriate. Bug #539167.Christian Persch2008-08-021-6/+6
| | | | svn path=/trunk/; revision=1847
* Port to new smbclient API introduced in samba-3.2.0pre2Tomas Bzatek2008-03-201-29/+34
| | | | | | | | | | | | 2008-03-20 Tomas Bzatek <tbzatek@redhat.com> * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/libsmb-compat.h: Port to new smbclient API introduced in samba-3.2.0pre2 svn path=/trunk/; revision=1672
* reviewed by: A. Walton <awalton@svn.gnome.org>Benjamin Otte2008-02-281-0/+6
| | | | | | | | | | | | | | | | | | | | | | | 2008-02-28 Benjamin Otte <otte@gnome.org> reviewed by: A. Walton <awalton@svn.gnome.org> * daemon/daemon-main-generic.c: (main): * daemon/daemon-main.c: (daemon_setup): * daemon/daemon-main.h: * daemon/gvfsbackendcdda.c: (g_vfs_cdda_daemon_init): * daemon/gvfsbackendcdda.h: * daemon/gvfsbackendsmb.c: (g_vfs_smb_daemon_init): * daemon/gvfsbackendsmb.h: * daemon/gvfsbackendsmbbrowse.c: (g_vfs_smb_browse_daemon_init): * daemon/gvfsbackendsmbbrowse.h: provide default application names for the daemons. This is necessary to avoid gnome-keyring from saying "Application" wants access to the keyring, which could sound very evil for a casual user. Adds some more strings for the poor translators, too! svn path=/trunk/; revision=1434
* If gconf availible, initialize default workgroup from gconf. HandleAlexander Larsson2008-02-201-14/+51
| | | | | | | | | | | | | | | 2008-02-20 Alexander Larsson <alexl@redhat.com> * daemon/Makefile.am: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: If gconf availible, initialize default workgroup from gconf. Handle X-GNOME-DEFAULT-WORKGROUP special case to list the current workgroup svn path=/trunk/; revision=1312
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-4/+2
| | | | | | | | | | | | | | | 2008-02-19 Alexander Larsson <alexl@redhat.com> * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302
* Save errno befor making other calls. Be safe when calling g_set_error()Alexander Larsson2008-02-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-11 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * common/gsysutils.c: * common/gvfsdaemonprotocol.c: * daemon/gvfsbackendburn.c: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackenddav.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjob.c: * daemon/mount.c: * daemon/pty_open.c: Save errno befor making other calls. Be safe when calling g_set_error() Patch from Christian Persch (#514822) svn path=/trunk/; revision=1254
* Another attribute separator fixMatthias Clasen2008-01-251-1/+1
| | | | svn path=/trunk/; revision=1179
* Clean up strings and add translator commentsAlexander Larsson2008-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | | 2008-01-15 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * daemon/daemon-main.c: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsjobsetattribute.c: * hal/ghaldrive.c: Clean up strings and add translator comments svn path=/trunk/; revision=1135
* Update to new file attribute namesAlexander Larsson2007-12-201-2/+2
| | | | | | | | | | | | | | | | | | | | 2007-12-20 Alexander Larsson <alexl@redhat.com> * client/gvfsfusedaemon.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsjobqueryinfo.c: * programs/gvfs-copy.c: * programs/gvfs-ls.c: * programs/gvfs-move.c: * test/benchmark-gvfs-big-files.c: * test/benchmark-gvfs-small-files.c: Update to new file attribute names svn path=/trunk/; revision=1058
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * client/gdaemondirectorymonitor.c: * client/gdaemondirectorymonitor.h: * client/gdaemonfile.c: * client/gdaemonfile.h: * client/gdaemonfileenumerator.c: * client/gdaemonfileenumerator.h: * client/gdaemonfileinputstream.c: * client/gdaemonfileinputstream.h: * client/gdaemonfilemonitor.c: * client/gdaemonfilemonitor.h: * client/gdaemonfileoutputstream.c: * client/gdaemonfileoutputstream.h: * client/gdaemonmount.c: * client/gdaemonmount.h: * client/gdaemonvfs.c: * client/gdaemonvfs.h: * client/gdaemonvolumemonitor.h: * client/gvfsdaemondbus.c: * client/gvfsdaemondbus.h: * client/gvfsfusedaemon.c: * client/gvfsurimapper.h: * client/smburi.c: * common/gdbusutils.c: * common/gdbusutils.h: * common/gmountoperationdbus.c: * common/gmountoperationdbus.h: * common/gmountsource.c: * common/gmountsource.h: * common/gsysutils.c: * common/gvfsdaemonprotocol.c: * common/gvfsdaemonprotocol.h: * daemon/gvfsbackend.h: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjob.c: * daemon/gvfsjob.h: * daemon/gvfsjobcopy.h: * daemon/gvfsjobcreatemonitor.h: * daemon/gvfsjobdelete.h: * daemon/gvfsjobenumerate.h: * daemon/gvfsjobmakedirectory.h: * daemon/gvfsjobmakesymlink.h: * daemon/gvfsjobmount.h: * daemon/gvfsjobmountmountable.h: * daemon/gvfsjobmove.h: * daemon/gvfsjobqueryattributes.h: * daemon/gvfsjobqueryfsinfo.h: * daemon/gvfsjobqueryinfo.h: * daemon/gvfsjobsetattribute.h: * daemon/gvfsjobsetdisplayname.h: * daemon/gvfsjobtrash.h: * daemon/gvfsjobunmount.h: * daemon/gvfsmonitor.h: * daemon/mount.c: * daemon/mount.h: * programs/gvfs-cat.c: * programs/gvfs-copy.c: * programs/gvfs-info.c: * programs/gvfs-ls.c: * programs/gvfs-monitor-dir.c: * programs/gvfs-monitor-file.c: * programs/gvfs-mount.c: * programs/gvfs-move.c: * programs/gvfs-rm.c: * programs/gvfs-save.c: * programs/gvfs-trash.c: * test/benchmark-gvfs-big-files.c: * test/benchmark-gvfs-small-files.c: * test/benchmark-posix-big-files.c: * test/benchmark-posix-small-files.c: Only use <gio/gio.h> include svn path=/trunk/; revision=1039
* Add copyright information to source files.Christian Kellner2007-11-011-0/+22
| | | | | | | | | | | | 2007-11-01 Christian Kellner <gicmo@gnome.org> * client/*.[ch]: * common/*.[ch]: * daemon/*.[ch]: * test/*.[ch]: Add copyright information to source files. svn path=/trunk/; revision=1007
* Don't show not user visible mountsAlexander Larsson2007-10-261-0/+1
| | | | | | | | | | | | | | | | | | 2007-10-26 Alexander Larsson <alexl@redhat.com> * client/gdaemonvolumemonitor.c: Don't show not user visible mounts * daemon/mount.c: Don't give fuse mounts for non visible mounts (as they don't get mounted) * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtrash.c: Mark as not user visible svn path=/trunk/; revision=997
* Rename set_icon -> set_icon_name Add getter for icon_name and display_nameAlexander Larsson2007-10-191-1/+11
| | | | | | | | | | | | | | | | | | | | 2007-10-19 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackend.[ch]: Rename set_icon -> set_icon_name Add getter for icon_name and display_name * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: Update for API changes Set display name for in fileinfo * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendtrash.c: Update for API changes svn path=/trunk/; revision=987
* Faster hash, since mount_spec is unique (g_daemon_file_equal): CompareAlexander Larsson2007-10-191-3/+25
| | | | | | | | | | | | | | | | | 2007-10-19 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: (g_daemon_file_hash): Faster hash, since mount_spec is unique (g_daemon_file_equal): Compare mount spec too * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: Set volume display names and icons Set content type and icon for files svn path=/trunk/; revision=986
* Update for G_IO_ERROR_NOT_MOUNTABLE_FILE name changeAlexander Larsson2007-09-251-2/+2
| | | | | | | | | | | 2007-09-25 Alexander Larsson <alexl@redhat.com> * client/gvfsfusedaemon.c: * daemon/gvfsbackendsmbbrowse.c: Update for G_IO_ERROR_NOT_MOUNTABLE_FILE name change svn path=/trunk/; revision=960
* Pass in DBusConnection to use instead of using default oneAlexander Larsson2007-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2007-09-25 Alexander Larsson <alexl@redhat.com> * common/gmountoperationdbus.[ch]: * common/gmounttracker.[ch]: Pass in DBusConnection to use instead of using default one * client/gdaemonfile.c: * client/gdaemonvfs.[ch]: * client/gvfsdaemondbus.c: Use private dbus connection even for async calls, since the mainloop integration is conflicting with dbus-glib. This is a temporary measure until this is solved in a better way. * client/gdaemonvolumemonitor.c: * client/gvfsfusedaemon.c: * daemon/gvfsbackendsmbbrowse.c: Update to the API changes svn path=/trunk/; revision=959
* Removed. Removed. Added. Added.Alexander Larsson2007-09-171-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-09-17 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * client/gvfsfusedaemon.c: * common/gvfsdaemonprotocol.h: * daemon/Makefile.am: * daemon/gvfsbackend.[ch]: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsjobenumerate.h: * daemon/gvfsjobgetfsinfo.[ch]: Removed. * daemon/gvfsjobgetinfo.[ch]: Removed. * daemon/gvfsjobqueryfsinfo.[ch]: Added. * daemon/gvfsjobqueryinfo.[ch]: Added. * daemon/gvfsjobsetattribute.[ch]: * test/benchmark-gvfs-big-files.c: * test/benchmark-gvfs-small-files.c: Update with the get_info -> query_info rename in gio svn path=/trunk/; revision=955