aboutsummaryrefslogtreecommitdiff
path: root/libpwdgrp
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /libpwdgrp
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'libpwdgrp')
-rw-r--r--libpwdgrp/Makefile2
-rw-r--r--libpwdgrp/Makefile.in2
-rw-r--r--libpwdgrp/__getgrent.c4
-rw-r--r--libpwdgrp/__getpwent.c2
-rw-r--r--libpwdgrp/fgetgrent.c4
-rw-r--r--libpwdgrp/fgetpwent.c4
-rw-r--r--libpwdgrp/getgrgid.c4
-rw-r--r--libpwdgrp/getgrnam.c2
-rw-r--r--libpwdgrp/getpw.c4
-rw-r--r--libpwdgrp/getpwnam.c4
-rw-r--r--libpwdgrp/getpwuid.c2
-rw-r--r--libpwdgrp/grent.c4
-rw-r--r--libpwdgrp/initgroups.c4
-rw-r--r--libpwdgrp/putpwent.c4
-rw-r--r--libpwdgrp/pwent.c2
-rw-r--r--libpwdgrp/setgroups.c4
-rw-r--r--libpwdgrp/shadow.c10
17 files changed, 31 insertions, 31 deletions
diff --git a/libpwdgrp/Makefile b/libpwdgrp/Makefile
index 5c54be325..79dbb462f 100644
--- a/libpwdgrp/Makefile
+++ b/libpwdgrp/Makefile
@@ -1,6 +1,6 @@
1# Makefile for busybox 1# Makefile for busybox
2# 2#
3# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> 3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4# 4#
5# This program is free software; you can redistribute it and/or modify 5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by 6# it under the terms of the GNU General Public License as published by
diff --git a/libpwdgrp/Makefile.in b/libpwdgrp/Makefile.in
index 886639e1f..cb7cbde76 100644
--- a/libpwdgrp/Makefile.in
+++ b/libpwdgrp/Makefile.in
@@ -1,6 +1,6 @@
1# Makefile for busybox 1# Makefile for busybox
2# 2#
3# Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> 3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4# 4#
5# This program is free software; you can redistribute it and/or modify 5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by 6# it under the terms of the GNU General Public License as published by
diff --git a/libpwdgrp/__getgrent.c b/libpwdgrp/__getgrent.c
index a20b3a260..ed4f59c5b 100644
--- a/libpwdgrp/__getgrent.c
+++ b/libpwdgrp/__getgrent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * __getgrent.c - This file is part of the libc-8086/grp package for ELKS, 2 * __getgrent.c - This file is part of the libc-8086/grp package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -187,7 +187,7 @@ struct group *bb_getgrent(int grp_fd)
187 } 187 }
188#else /* !GR_SCALE_DYNAMIC */ 188#else /* !GR_SCALE_DYNAMIC */
189 free(members); 189 free(members);
190 members = (char **) malloc((member_num + 1) * sizeof(char *)); 190 members = (char **) malloc((member_num + 1) * sizeof(char *));
191 for ( ; field_begin && *field_begin != '\0'; field_begin = ptr) { 191 for ( ; field_begin && *field_begin != '\0'; field_begin = ptr) {
192 if ((ptr = strchr(field_begin, ',')) != NULL) 192 if ((ptr = strchr(field_begin, ',')) != NULL)
193 *ptr++ = '\0'; 193 *ptr++ = '\0';
diff --git a/libpwdgrp/__getpwent.c b/libpwdgrp/__getpwent.c
index 1b38c27ef..09ed63139 100644
--- a/libpwdgrp/__getpwent.c
+++ b/libpwdgrp/__getpwent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * __getpwent.c - This file is part of the libc-8086/pwd package for ELKS, 2 * __getpwent.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/fgetgrent.c b/libpwdgrp/fgetgrent.c
index da4ca053f..77c2884ed 100644
--- a/libpwdgrp/fgetgrent.c
+++ b/libpwdgrp/fgetgrent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * fgetgrent.c - This file is part of the libc-8086/grp package for ELKS, 2 * fgetgrent.c - This file is part of the libc-8086/grp package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <stdio.h> 23#include <stdio.h>
24#include <errno.h> 24#include <errno.h>
diff --git a/libpwdgrp/fgetpwent.c b/libpwdgrp/fgetpwent.c
index 54c3b3adc..74bf922d7 100644
--- a/libpwdgrp/fgetpwent.c
+++ b/libpwdgrp/fgetpwent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * fgetpwent.c - This file is part of the libc-8086/pwd package for ELKS, 2 * fgetpwent.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <errno.h> 23#include <errno.h>
24#include <stdio.h> 24#include <stdio.h>
diff --git a/libpwdgrp/getgrgid.c b/libpwdgrp/getgrgid.c
index 0f5ce1cac..4502e2b42 100644
--- a/libpwdgrp/getgrgid.c
+++ b/libpwdgrp/getgrgid.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * getgrgid.c - This file is part of the libc-8086/grp package for ELKS, 2 * getgrgid.c - This file is part of the libc-8086/grp package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <sys/types.h> 23#include <sys/types.h>
24#include <unistd.h> 24#include <unistd.h>
diff --git a/libpwdgrp/getgrnam.c b/libpwdgrp/getgrnam.c
index 46950e2b6..766b7bc5d 100644
--- a/libpwdgrp/getgrnam.c
+++ b/libpwdgrp/getgrnam.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * getgrnam.c - This file is part of the libc-8086/grp package for ELKS, 2 * getgrnam.c - This file is part of the libc-8086/grp package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/getpw.c b/libpwdgrp/getpw.c
index d46e2c7da..8494a6ae9 100644
--- a/libpwdgrp/getpw.c
+++ b/libpwdgrp/getpw.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * getpw.c - This file is part of the libc-8086/pwd package for ELKS, 2 * getpw.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <sys/types.h> 23#include <sys/types.h>
24#include <errno.h> 24#include <errno.h>
diff --git a/libpwdgrp/getpwnam.c b/libpwdgrp/getpwnam.c
index 013f155bc..f4caeeab1 100644
--- a/libpwdgrp/getpwnam.c
+++ b/libpwdgrp/getpwnam.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * getpwnam.c - This file is part of the libc-8086/pwd package for ELKS, 2 * getpwnam.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <unistd.h> 23#include <unistd.h>
24#include <string.h> 24#include <string.h>
diff --git a/libpwdgrp/getpwuid.c b/libpwdgrp/getpwuid.c
index bae6e15e6..7fa7ed956 100644
--- a/libpwdgrp/getpwuid.c
+++ b/libpwdgrp/getpwuid.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * getpwuid.c - This file is part of the libc-8086/pwd package for ELKS, 2 * getpwuid.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/grent.c b/libpwdgrp/grent.c
index ff3c49e68..753026c29 100644
--- a/libpwdgrp/grent.c
+++ b/libpwdgrp/grent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * grent.c - This file is part of the libc-8086/grp package for ELKS, 2 * grent.c - This file is part of the libc-8086/grp package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -24,7 +24,7 @@
24 * in together. 24 * in together.
25 */ 25 */
26 26
27#include "busybox.h" 27#include "busybox.h"
28 28
29#include <unistd.h> 29#include <unistd.h>
30#include <fcntl.h> 30#include <fcntl.h>
diff --git a/libpwdgrp/initgroups.c b/libpwdgrp/initgroups.c
index f97948379..9243fd3ac 100644
--- a/libpwdgrp/initgroups.c
+++ b/libpwdgrp/initgroups.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * initgroups.c - This file is part of the libc-8086/grp package for ELKS, 2 * initgroups.c - This file is part of the libc-8086/grp package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <unistd.h> 23#include <unistd.h>
24#include <string.h> 24#include <string.h>
diff --git a/libpwdgrp/putpwent.c b/libpwdgrp/putpwent.c
index f6b3a2577..0710ff5b2 100644
--- a/libpwdgrp/putpwent.c
+++ b/libpwdgrp/putpwent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * putpwent.c - This file is part of the libc-8086/pwd package for ELKS, 2 * putpwent.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
@@ -18,7 +18,7 @@
18 * 18 *
19 */ 19 */
20 20
21#include "busybox.h" 21#include "busybox.h"
22 22
23#include <stdio.h> 23#include <stdio.h>
24#include <errno.h> 24#include <errno.h>
diff --git a/libpwdgrp/pwent.c b/libpwdgrp/pwent.c
index f7f8581f3..1cdb2d454 100644
--- a/libpwdgrp/pwent.c
+++ b/libpwdgrp/pwent.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * pwent.c - This file is part of the libc-8086/pwd package for ELKS, 2 * pwent.c - This file is part of the libc-8086/pwd package for ELKS,
3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>. 3 * Copyright (C) 1995, 1996 Nat Friedman <ndf@linux.mit.edu>.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
diff --git a/libpwdgrp/setgroups.c b/libpwdgrp/setgroups.c
index 449e811dc..15a16f4e6 100644
--- a/libpwdgrp/setgroups.c
+++ b/libpwdgrp/setgroups.c
@@ -2,7 +2,7 @@
2/* 2/*
3 * Taken from the set of syscalls for uClibc 3 * Taken from the set of syscalls for uClibc
4 * 4 *
5 * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify it 7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Library General Public License as published by 8 * under the terms of the GNU Library General Public License as published by
@@ -20,7 +20,7 @@
20 * 20 *
21 */ 21 */
22 22
23#include "busybox.h" 23#include "busybox.h"
24 24
25#include <errno.h> 25#include <errno.h>
26#include <unistd.h> 26#include <unistd.h>
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c
index 9e218f96f..b3a4901f5 100644
--- a/libpwdgrp/shadow.c
+++ b/libpwdgrp/shadow.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Copyright 1989 - 1994, Julianne Frances Haugh 3 * Copyright 1989 - 1994, Julianne Frances Haugh
4 * <jockgrrl@austin.rr.com>, <jfh@austin.ibm.com> 4 * <jockgrrl@austin.rr.com>, <jfh@austin.ibm.com>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
@@ -29,8 +29,8 @@
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31 31
32/* TODO: fgetspent_r.c getspent_r.c getspnam_r.c sgetspent_r.c 32/* TODO: fgetspent_r.c getspent_r.c getspnam_r.c sgetspent_r.c
33 * lckpwdf ulckpwdf 33 * lckpwdf ulckpwdf
34 */ 34 */
35 35
36#include <stdio.h> 36#include <stdio.h>
@@ -267,7 +267,7 @@ struct spwd *fgetspent(FILE *fp)
267 267
268/* 268/*
269 * putspent - put a (struct spwd *) into the (FILE *) you provide. 269 * putspent - put a (struct spwd *) into the (FILE *) you provide.
270 * 270 *
271 * this was described in shadow_.h but not implemented, so here 271 * this was described in shadow_.h but not implemented, so here
272 * I go. -beppu 272 * I go. -beppu
273 * 273 *
@@ -290,7 +290,7 @@ int putspent(const struct spwd *sp, FILE *fp)
290 sp->sp_min, /* minimum number of days between changes */ 290 sp->sp_min, /* minimum number of days between changes */
291 sp->sp_max, /* maximum number of days between changes */ 291 sp->sp_max, /* maximum number of days between changes */
292 sp->sp_warn, /* number of days of warning before password expires */ 292 sp->sp_warn, /* number of days of warning before password expires */
293 sp->sp_inact, /* number of days after password expires until 293 sp->sp_inact, /* number of days after password expires until
294 the account becomes unusable */ 294 the account becomes unusable */
295 sp->sp_expire, /* days since 1/1/70 until account expires */ 295 sp->sp_expire, /* days since 1/1/70 until account expires */
296 ""); 296 "");