After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793515 - smbbrowse: Avoid "Error: Success" failure messages
smbbrowse: Avoid "Error: Success" failure messages
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: smb backend
unspecified
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2018-02-16 16:10 UTC by Bastien Nocera
Modified: 2018-02-28 12:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
smbbrowse: Avoid "Error: Success" failure messages (2.15 KB, patch)
2018-02-16 16:10 UTC, Bastien Nocera
none Details | Review
smbbrowse: Avoid "Error: Success" failure messages (2.16 KB, patch)
2018-02-28 10:13 UTC, Ondrej Holy
committed Details | Review
smb: Avoid "Error: Success" failure messages (2.13 KB, patch)
2018-02-28 10:13 UTC, Ondrej Holy
committed Details | Review

Description Bastien Nocera 2018-02-16 16:10:30 UTC
.
Comment 1 Bastien Nocera 2018-02-16 16:10:47 UTC
Created attachment 368434 [details] [review]
smbbrowse: Avoid "Error: Success" failure messages

Save the failed errno as soon as possible to avoid "Error: Success" type
of messages.
Comment 2 Ondrej Holy 2018-02-19 11:29:24 UTC
Review of attachment 368434 [details] [review]:

Looks ok, thanks, just please use errsv variable instead of errno_save as on other places! Feel free to push with that change.

Seems that the same issue is also in the smb backend, can you please prepare a patch for it also?
Comment 3 Ondrej Holy 2018-02-28 10:13:45 UTC
Created attachment 369088 [details] [review]
smbbrowse: Avoid "Error: Success" failure messages

Updated as per the review...
Comment 4 Ondrej Holy 2018-02-28 10:13:55 UTC
Created attachment 369089 [details] [review]
smb: Avoid "Error: Success" failure messages
Comment 5 Ondrej Holy 2018-02-28 10:14:49 UTC
Attachment 369088 [details] pushed as 20e2a96 - smbbrowse: Avoid "Error: Success" failure messages
Attachment 369089 [details] pushed as 84e95d8 - smb: Avoid "Error: Success" failure messages
Comment 6 Ondrej Holy 2018-02-28 11:41:03 UTC
Btw, you can still get this error, because smbc_opendir can return NULL and do not set errno obviously... :-(

https://bugzilla.redhat.com/show_bug.cgi?id=1513394#c2
Comment 7 Bastien Nocera 2018-02-28 12:37:11 UTC
Thanks for finishing up the work, as usual, I got stuck doing other things.
The patch was one for Bigon to test out, but it seems he didn't have time to.

(In reply to Ondrej Holy from comment #6)
> Btw, you can still get this error, because smbc_opendir can return NULL and
> do not set errno obviously... :-(
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1513394#c2

Maybe check for errno being 0 and use a different error message?
Comment 8 Bastien Nocera 2018-02-28 12:55:08 UTC
(In reply to Bastien Nocera from comment #7)
> Thanks for finishing up the work, as usual, I got stuck doing other things.
> The patch was one for Bigon to test out, but it seems he didn't have time to.
> 
> (In reply to Ondrej Holy from comment #6)
> > Btw, you can still get this error, because smbc_opendir can return NULL and
> > do not set errno obviously... :-(
> > 
> > https://bugzilla.redhat.com/show_bug.cgi?id=1513394#c2
> 
> Maybe check for errno being 0 and use a different error message?

Filed https://bugzilla.gnome.org/show_bug.cgi?id=793911