From 6223c40c2d0a93fc6a2c7e0f41f0d550c50a7a95 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 28 Jul 2011 15:19:40 +0000 Subject: [PATCH] * lib/commonio.c: Fix NIS commit from 2011-07-14. --- ChangeLog | 4 ++++ lib/commonio.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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) {