Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nslcd/netgroup.c1
-rwxr-xr-xpynslcd/pynslcd.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/netgroup.c b/nslcd/netgroup.c
index f6ac331..e9d81a2 100644
--- a/nslcd/netgroup.c
+++ b/nslcd/netgroup.c
@@ -220,7 +220,6 @@ static int write_netgroup(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname)
myldap_get_dn(entry),attmap_netgroup_cn);
return 0;
}
-
for (i=0;(names[i]!=NULL)&&(strcmp(reqname,names[i])!=0);i++)
/* nothing here */ ;
if (names[i]==NULL)
diff --git a/pynslcd/pynslcd.py b/pynslcd/pynslcd.py
index 1c75cbb..7cd8209 100755
--- a/pynslcd/pynslcd.py
+++ b/pynslcd/pynslcd.py
@@ -272,7 +272,8 @@ if __name__ == '__main__':
sys.exit(1)
# normal check for pidfile locked
if pidfile.is_locked():
- logging.error('daemon may already be active, cannot acquire lock (%s)', config.NSLCD_PIDFILE)
+ logging.error('daemon may already be active, cannot acquire lock (%s)',
+ config.NSLCD_PIDFILE)
sys.exit(1)
# daemonize
if debugging: