Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2001 14:50:01 -0800 (PST)
From:      Joe Clarke <jclarke@cisco.com>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/32566: Recent Nautilus patch causes infinite loop
Message-ID:  <200112062250.fB6Mo1H98551@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/32566; it has been noted by GNATS.

From: Joe Clarke <jclarke@cisco.com>
To: freebsd-gnats-submit@FreeBSD.org, marcus@marcuscom.com
Cc:  
Subject: Re: ports/32566: Recent Nautilus patch causes infinite loop
Date: Thu, 06 Dec 2001 17:42:35 -0500

 Sorry, the patch wasn't complete.  This patch should be better:
 
 --- patch-libnautilus-private::nautilus-volume-monitor.c.orig   Thu Dec 
 6 17:41:42 2001
 +++ patch-libnautilus-private::nautilus-volume-monitor.c        Thu Dec 
 6 17:41:54 2001
 @@ -163,13 +163,12 @@
           while (! getmntent(fh, &ent)) {
                   volume = create_volume (ent.mnt_special,
 ent.mnt_mountp);
                   volume->is_removable = has_removable_mntent_options
 (&ent);
 -@@ -932,6 +979,23 @@
 +@@ -932,6 +979,22 @@
           }
 
         fclose (fh);
  +#else
  +      while ((ent = getfsent ()) != NULL) {
 -+              {static int b = 1; while (b);}
  +              if (strcmp(ent->fs_vfstype, "swap") == 0)
  +                      continue;
  +              volume = create_volume (ent->fs_spec, ent->fs_file);
 
 --
 Joe Clarke, CCIE #5384             |          |
 Customer Support Engineer        |||||      |||||
 Phone: +1 (919) 392-2867    ..:|||||||||::|||||||||:..
 Email: jclarke@cisco.com     c i s c o  S y s t e m s
 
 ----------------------------------------------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112062250.fB6Mo1H98551>