Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/lfs_cleanerd fix a reversed condition.



details:   https://anonhg.NetBSD.org/src/rev/b271d29f3553
branches:  trunk
changeset: 526411:b271d29f3553
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri May 03 04:43:57 2002 +0000

description:
fix a reversed condition.

diffstat:

 libexec/lfs_cleanerd/library.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r febdb83ae14d -r b271d29f3553 libexec/lfs_cleanerd/library.c
--- a/libexec/lfs_cleanerd/library.c    Fri May 03 04:42:08 2002 +0000
+++ b/libexec/lfs_cleanerd/library.c    Fri May 03 04:43:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: library.c,v 1.25 2002/04/30 15:21:55 agc Exp $ */
+/*     $NetBSD: library.c,v 1.26 2002/05/03 04:43:57 yamt Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)library.c  8.3 (Berkeley) 5/24/95";
 #else
-__RCSID("$NetBSD: library.c,v 1.25 2002/04/30 15:21:55 agc Exp $");
+__RCSID("$NetBSD: library.c,v 1.26 2002/05/03 04:43:57 yamt Exp $");
 #endif
 #endif /* not lint */
 
@@ -146,7 +146,7 @@
 void
 reread_fs_info(FS_INFO *fsp, int use_mmap)
 {
-       if (ifile_fd <= 0) {
+       if (ifile_fd > 0) {
                if (fstatfs(ifile_fd, fsp->fi_statfsp)) {
                        syslog(LOG_ERR, "Exiting: reread_fs_info: fstatfs failed: %m");
                        exit(1);



Home | Main Index | Thread Index | Old Index