Module Name: src
Committed By: joerg
Date: Fri Aug 28 11:38:57 UTC 2015
Modified Files:
src/external/bsd/am-utils/dist/amd: info_ldap.c
Log Message:
Fix check for non-positive timestamps.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 src/external/bsd/am-utils/dist/amd/info_ldap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/am-utils/dist/amd/info_ldap.c
diff -u src/external/bsd/am-utils/dist/amd/info_ldap.c:1.1.1.3 src/external/bsd/am-utils/dist/amd/info_ldap.c:1.2
--- src/external/bsd/am-utils/dist/amd/info_ldap.c:1.1.1.3 Sat Jan 17 16:34:15 2015
+++ src/external/bsd/am-utils/dist/amd/info_ldap.c Fri Aug 28 11:38:57 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: info_ldap.c,v 1.1.1.3 2015/01/17 16:34:15 christos Exp $ */
+/* $NetBSD: info_ldap.c,v 1.2 2015/08/28 11:38:57 joerg Exp $ */
/*
* Copyright (c) 1997-2014 Erez Zadok
@@ -448,7 +448,7 @@ get_ldap_timestamp(ALD *a, char *map, ti
vals[0], map);
err = ENOENT;
}
- if (!*ts > 0) {
+ if (*ts <= 0) {
plog(XLOG_USER, "Nonpositive timestamp %ld for map %s\n",
(u_long) *ts, map);
err = ENOENT;