* libamu/mtab.c (hasmntval): fix inverted meaning of error from
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 16 Apr 2006 16:34:35 +0000 (16:34 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 16 Apr 2006 16:34:35 +0000 (16:34 +0000)
hasmntvalerr().

ChangeLog
libamu/mtab.c

index 53064feddc4ef1388b63ed2a86c511717061bec4..d05625dfa482332d6c6c2928fea3864d430822da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-16  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * libamu/mtab.c (hasmntval): fix inverted meaning of error from
+       hasmntvalerr().
+
 2006-04-14  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * libamu/mount_fs.c (compute_nfs_attrcache_flags): use new
index cf58386424c5a0a078ffda29c4a3e7ff53ae6683..50ba994733f0c8069c250a6fdec8daeedd4e586f 100644 (file)
@@ -149,7 +149,7 @@ hasmntval(mntent_t *mnt, char *opt)
   int err, val = 0;
 
   err = hasmntvalerr(mnt, opt, &val);
-  if (!err)       /* if there was an error */
+  if (err)        /* if there was an error (hasmntvalerr returned 1) */
     return 0;     /* redundant: val==0 above, but leave here for clarity */
   /* otherwise there was no error */
   return val;