On 10 Oct 2001 11:38:28 -0700
"Christopher Keller" <[EMAIL PROTECTED]> wrote:
> mtab seems to be behaving fine. It's simply a representation of what's
> currently mounted?
Here's a patch for tmpwatch. It'll be in the next version (which will be
released as an errata if this breaks for other folks). It's only a problem
if you have a .journal file in /tmp somewhere, which probably isn't true
most of the time.
Erik
Index: tmpwatch.c
===================================================================
RCS file: /mnt/devel/CVS/tmpwatch/tmpwatch.c,v
retrieving revision 1.31
diff -u -r1.31 tmpwatch.c
--- tmpwatch.c 2001/08/28 18:50:00 1.31
+++ tmpwatch.c 2001/10/11 14:09:37
@@ -331,7 +331,7 @@
struct mntent *mnt;
int foundflag = 0;
- if ((fp = setmntent(_PATH_MOUNTED, "r")) != 0) {
+ if ((fp = setmntent(_PATH_MOUNTED, "r")) == NULL) {
message(LOG_ERROR, "failed to open %s for reading\n",
_PATH_MOUNTED);
continue;
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list