]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
* lib/commonio.c: Fix NIS commit from 2011-07-14.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 28 Jul 2011 15:19:40 +0000 (15:19 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Thu, 28 Jul 2011 15:19:40 +0000 (15:19 +0000)
ChangeLog
lib/commonio.c

index ebb67d398db48eefaab5840b23d58042d1da2b9c..339f2b4d7b485c849166c3cba5edc4add3f12e68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-28  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/commonio.c: Fix NIS commit from 2011-07-14.
+
 2011-07-28  Nicolas François  <nicolas.francois@centraliens.net>
 
        * NEWS, src/chpasswd.c: Create a shadow entry if the password is
index 2853fc09b71bfd28ede5b2677a2612b0257f633b..603ac3c75eebe64d994357315b891f202c4ff3e6 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1990 - 1994, Julianne Frances Haugh
  * Copyright (c) 1996 - 2001, Marek Michałkiewicz
  * Copyright (c) 2001 - 2006, Tomasz Kłoczko
- * Copyright (c) 2007 - 2010, Nicolas François
+ * Copyright (c) 2007 - 2011, Nicolas François
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -773,7 +773,7 @@ commonio_sort (struct commonio_db *db, int (*cmp) (const void *, const void *))
 #if KEEP_NIS_AT_END
             && (NULL != ptr->line)
             && (   ('+' != ptr->line[0])
-                || ('-' != ptr->line[0]))
+                && ('-' != ptr->line[0]))
 #endif
             ;
             ptr = ptr->next) {