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 464429 - [PATCH] gamin-0.1.9 - gam_server and linked applications eat 100% CPU
[PATCH] gamin-0.1.9 - gam_server and linked applications eat 100% CPU
Status: RESOLVED WONTFIX
Product: gamin
Classification: Other
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: Gamin Maintainer(s)
Gamin Maintainer(s)
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2007-08-07 17:09 UTC by Roy Marples
Modified: 2018-07-01 08:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Fix working on Gentoo/FreeBSD (15.86 KB, patch)
2007-08-07 17:10 UTC, Roy Marples
none Details | Review
Fix Gentoo/FreeBSD (17.22 KB, patch)
2007-08-21 16:23 UTC, Roy Marples
none Details | Review
Fix Gentoo/FreeBSD (17.05 KB, patch)
2007-08-23 17:00 UTC, Roy Marples
none Details | Review

Description Roy Marples 2007-08-07 17:09:37 UTC
On Gentoo/FreeBSD. We had a patchset from FreeBSD Ports for 0.1.7. some of the changes have been merged into 0.1.9. I've redone the rest of the patchset for 0.1.9, hopefully you will include it or more parts of it into gamin proper.
Comment 1 Roy Marples 2007-08-07 17:10:40 UTC
Created attachment 93225 [details] [review]
Fix working on Gentoo/FreeBSD

We use this patchset on Gentoo/Linux too, so it should be safe to merge.
Comment 2 Daniel Veillard 2007-08-08 21:25:15 UTC
Hum, there is a lot of unrelated things in that patch.
It looks mostly correct, I see however one issues:
  - the change to gam_fs_init() would break on systems
    which are not Linux nor FreeBsd (Solaris, OS-X for example)
    since they won't get any initialization, need to be
    so that the dfault code continue to be used

The gam_server_get_poll_handler() looks normal, but I wonder
if this was just a typo or a late change.

Again this looks mostly okay, would you mind commenting on the
issue here or on the mailing-list so I don't forget about it (again ?)

  thanks,

Daniel
Comment 3 Roy Marples 2007-08-21 16:23:12 UTC
Created attachment 94059 [details] [review]
Fix Gentoo/FreeBSD

Good catch. I've added a check for the getmntinfo function to configure.in which should solve that issue.

Did you have any other queries?
Comment 4 Daniel Veillard 2007-08-23 16:18:46 UTC
I don't understand that part of the patch checking the security aspects
of the path, why did this need a change. Doesn't look like a pure portability
change:

@@ -640,9 +644,19 @@
      * some extra protection checks. Also make sure the socket is created
      * with restricted mode
      */
-    if (!gam_check_secure_path(path)) {
+    if (!gam_check_secure_dir()) {
+       close(fd);
        return (-1);
     }

can you explain ?

Daniel
Comment 5 Roy Marples 2007-08-23 17:00:14 UTC
Created attachment 94197 [details] [review]
Fix Gentoo/FreeBSD

No I cannot explain that. Reverting it does not stop gamin from working on Gentoo/FreeBSD either.
Comment 6 André Klapper 2018-07-01 08:48:10 UTC
gamin is not under active development anymore and has not seen code changes for many years.
Its codebase has been archived: https://gitlab.gnome.org/Archive/gamin/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.