diff --git a/ChangeLog b/ChangeLog index ebb67d39..339f2b4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-07-28 Nicolas François + + * lib/commonio.c: Fix NIS commit from 2011-07-14. + 2011-07-28 Nicolas François * NEWS, src/chpasswd.c: Create a shadow entry if the password is diff --git a/lib/commonio.c b/lib/commonio.c index 2853fc09..603ac3c7 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -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) {