Hey,

I found out more interesting stuff about this.

> 19:24 < nyu> i found where the bug is
> 19:25 < nyu>         if (bkgrdflag == 0 && mntp != NULL && (mntp->f_flag & 
> ST_RDONLY) == 0)
> 19:25 < nyu>                 resolved = 0;
> 19:25 < nyu> this line (in main.c) sets resolved to 0 and it was 1 before
> 19:26 < nyu> i'm not sure how to fix the check though.  apparently the mntp 
> structure is initialised with garbage when
>              HAVE_BSD_STATFS is not defined

At least on GNU/kFreeBSD, writing to mounted devices is disallowed (we get an
EBUSY).  So AFAICT this check would be useful only on GNU/Linux.

-- 
 .''`.   Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `'    http://www.debian.org/ports/kfreebsd-gnu
  `-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to