1
2009-04-15 Nicolas François <nicolas.francois@centraliens.net>
3
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
4
* po/*.po, man/po/*.po: Updated PO files.
5
* configure.in: Updated version number.
7
2009-04-15 Peter Vrabec <pvrabec@redhat.com>
9
* NEWS, src/userdel.c: Fixed SE Linux support. semanage should be
11
* src/useradd.c: Always call selinux_update_mapping() (i.e.
12
semanage), not only when -Z is used.
14
2009-04-15 Peter Vrabec <pvrabec@redhat.com>
16
* NEWS, srclib/getlong.c: Fix parsing of octal numbers.
18
2009-04-15 Nicolas François <nicolas.francois@centraliens.net>
20
* NEWS, src/login.c: Fix segfault when no user is provided on the
23
2009-04-15 Nicolas François <nicolas.francois@centraliens.net>
25
* README, libmisc/system.c: Was contributed by Dan Walsh.
27
2009-04-15 Nicolas François <nicolas.francois@centraliens.net>
29
* NEW, src/vipw.c: SE Linux: Set the default context to the
30
context of the file being edited. This ensures that the backup
31
file inherit from the file's context.
33
2009-04-14 Nicolas François <nicolas.francois@centraliens.net>
35
* man/usermod.8.xml: There are no default values for --inactive
36
and --gid. If the options are no provided, the original values are
39
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
41
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
42
* po/*.po, man/po/*.po: Updated PO files.
44
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
46
* src/su.c: If there are no root account, or if the root account
47
has an UID != 0, default to the first UID 0 account.
49
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
51
* src/login.c: Restore the echoctl, echoke, onclr flags to the
52
terminal termio flags. Reset echoprt, noflsh, tostop. This
53
behavior seems to have change by mistake in earlier releases
54
(4.0.8, for no obvious reason).
56
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
58
* src/login.c: Fix the count of failures before login exits in
59
case of PAM enabled configurations.
61
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
63
* man/passwd.1.xml: Document that passwd uses PAM to authenticate
64
and change passwords on PAM-enabled builds.
66
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
68
* src/newusers.c: Add more information to the mkdir and chown
71
2009-04-12 Nicolas François <nicolas.francois@centraliens.net>
73
* man/po/fr.po: Updated some login.defs entries. Thanks to
76
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
78
* man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml,
79
man/login.defs.d/CONSOLE_GROUPS.xml: Fix typos.
81
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
83
* man/es/Makefile.am: Disable the distribution of Spanish
84
manpages. They are outdated. Please contact
85
pkg-shadow-devel@lists.alioth.debian.org if you wish to provide
88
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
90
* src/usermod.c, src/useraddd.c: Fix the usage string so that it
91
does not change depending on the configure option. Use a format.
93
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
95
* src/gpasswd.c: Fix the usage of the unused macro.
97
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
99
* lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
100
shadow entry is now sufficient for agecheck. Remove the first
101
passwd entry parameter.
103
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
105
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
107
* src/userdel.c: Rename argv to args to avoid nameclash with the
110
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
112
* libmisc/getgr_nam_gid.c: Added support for NULL argument.
113
* libmisc/chowntty.c: Reuse getgr_nam_gid(), and get rid of atol().
115
2009-04-11 Peter Vrabec <pvrabec@redhat.com>
117
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system
118
accounts, return the first unused ID, starting from the max value.
119
This could be useful later to increase the static IDs range.
121
2009-04-11 Peter Vrabec <pvrabec@redhat.com>
123
* NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map
124
SELinux user for user's login.
125
* NEWS, src/usermod.c, man/usermod.8.xml: Likewise.
126
* libmisc/system.c, libmisc/Makefile.am, lib/prototypes.h: Added
127
safe_system(). Used to run semanage.
128
* lib/prototypes.h, libmisc/copydir.c: Make a
129
selinux_file_context() an extern function.
130
* libmisc/copydir.c: Reset SELinux to create files with default
131
contexts at the end of copy_tree().
132
* NEWS, src/userdel.c: Delete the SELinux user mapping for user's
135
2009-04-11 Peter Vrabec <pvrabec@redhat.com>
137
* src/useradd.c (get_defaults): Close the default file after the
138
default values were read.
140
2009-04-11 Christian Perrier <bubulle@debian.org>
142
* po/sk.po: Slovak translation updated. Thanks to Ivan Masár
144
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
146
* lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.
148
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
150
* po/POTFILES.in: Added missing files. Sorted.
152
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
154
* lib/getdef.c: Use getlong instead of strtol/strtoul.
155
* libmisc/getlong, lib/getlong.c, libmisc/Makefile.am,
156
lib/Makefile.am: getlong.c moved from libmisc/ to lib/.
158
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
160
* lib/shadow.c: Replace strtol() by getlong(). Also detect more
161
issues in a numerical shadow entry field.
163
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
165
* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
167
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
169
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
170
issues in a numerical shadow entry field.
172
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
174
* src/chage.c: More strtol() replaced by getlong().
175
* src/chage.c: expdays renamed to expdate. It is a date, even if
176
expressed in a number of days since Jan 1, 1970.
177
* src/chage.c: Likewise: lastday renamed to lstchgdate. Also fix
178
the --lastday documentation.
180
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
182
* lib/prototypes.h: pwd_to_spwd() should be declared if USE_PAM is
185
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
187
* src/passwd.c: Replace getnumber() by getlong(). This permits to
188
get rid of another strtol().
190
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
192
* libmisc/getlong.c: Include both <stdlib.h> and <errno.h> needed
193
for strtol and errno, and do not include "defines.h" (not needed).
195
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
197
* src/useradd.c, src/usermod.c, libmisc/getgr_nam_gid.c,
198
libmisc/Makefile.am, lib/prototypes.h: Moved getgr_nam_gid() from
199
src/useradd.c and src/usermod.c to libmisc/getgr_nam_gid.c.
201
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
203
* src/useradd.c: Re-indent.
204
* src/useradd.c: Use getlong instead of get_number.
205
* src/useradd.c: Get rid of strtol.
206
* src/useradd.c: Provide better warning in case a default GROUP or
207
INACTIVE value is not valid in /etc/default/useradd.
209
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
211
* src/usermod.c: Re-indent.
212
* src/usermod.c: Specifying a inactivity value < -1 is not valid.
214
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
216
* configure.in: Prepare the next 4.1.3 release.
217
* po/*.po, man/po/*.po: Updated PO files.
219
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
221
* lib/prototypes.h, libmisc/addgrps.c: restrict add_groups() to
223
* lib/prototypes.h: Remove the declaration of add_cons_grps(). The
224
function does not exist.
225
* libmisc/setugid.c libmisc/age.c (setup_uid_gid): is_console is
226
never set ifndef USE_PAM. Change the prototype of setup_uid_gid()
227
when USE_PAM is not defined. This permits to remove add_groups
228
from PAM builds. setup_uid_gid is already subject to
230
* libmisc/pwd2spwd.c (pwd_to_spwd): pwd_to_spwd() is not used in
233
2009-04-05 Nicolas François <nicolas.francois@centraliens.net>
235
* src/passwd.c: do_update_age is only used ifndef USE_PAM. Make it
238
2009-04-05 Nicolas François <nicolas.francois@centraliens.net>
240
* src/useradd.c: Set errno to 0 before calling strtol.
242
2009-04-05 Nicolas François <nicolas.francois@centraliens.net>
244
* libmisc/isexpired.c: If there are no shadow entry, there is no
245
need to convert the password entry to a shadow entry. The password
248
2009-04-05 Nicolas François <nicolas.francois@centraliens.net>
250
* man/usermod.8.xml: Split some paragraphs into smaller units.
252
2009-04-05 Nicolas François <nicolas.francois@centraliens.net>
254
* man/shadow.5.xml: Rewrote to mention the meaning of special
257
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
259
* libmisc/pwd2spwd.c, src/chpasswd.c, src/newusers.c,
260
src/passwd.c, src/pwck.c, src/pwconv.c, src/useradd.c,
261
src/usermod.c: On Jan 01, 1970, do not set the sp_lstchg field to
262
0 (which means that the password shall be changed during the next
263
login), but use -1 (password aging disabled).
264
* src/passwd.c: Do not check sp_min if sp_lstchg is null or -1.
266
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
268
* src/chage.c: When no shadow entry exist, the default sp_lstchg
269
value should be -1 (no aging) rather than 0 (password must be
271
* src/chage.c: For password expiration and inactivity, indicate
272
that the password must be changed when sp_lstchg is null rather
273
than indicating that expiration and inactivity are not enabled.
275
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
277
* libmisc/isexpired.c: Document the isexpired return value.
279
2009-04-04 Nicolas François <nicolas.francois@centraliens.net>
281
* libmisc/age.c: Return a specific message when sp_lstchg is null.
283
2009-03-21 Nicolas François <nicolas.francois@centraliens.net>
285
* lib/sgetpwent.c, lib/sgetgrent.c: Use get_uid and get_gid to
286
validate the UIDs or GIDs instead of atoi/strtol.
288
2009-03-21 Nicolas François <nicolas.francois@centraliens.net>
290
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
291
lib/get_gid.c, lib/get_uid.c, lib/Makefile.am: get_uid.c and
292
get_gid.c moved from libmisc/ to lib/.
294
2009-03-21 Nicolas François <nicolas.francois@centraliens.net>
296
* src/grpck.c (check_members): When a member is removed, do not
298
* src/grpck.c: Fix typo in messages and comments.
300
2009-03-21 Nicolas François <nicolas.francois@centraliens.net>
302
* lib/commonio.c: Call fsync before closing the backup file. This
303
ensures that the backup file is flushed to the storage medium.
304
* src/useradd.c: Likewise for the default file, faillog, lastlog,
306
* src/usermod.c: Likewise for the faillog and lastlog file.
307
* src/vipw.c: Likewise for the backup file.
308
* libmisc/sulog.c: Likewise for the su log.
310
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
312
* src/groupmod.c: Embed gshadow related cleanup in #ifdef
315
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
317
* src/usermod.c: get_number() replaced by getlong().
318
* src/usermod.c: When the user is renamed, make sure we do not
319
override an user with the same name (in passwd or shadow).
321
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
323
* src/gpasswd.c: log_gpasswd_success_gshadow is in the cleanup
324
stack only when the shadow group file is present.
326
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
328
* NEWS, src/userdel.c: Make sure the user exists in the shadow
329
database before calling spw_remove().
330
* NEWS, src/userdel.c: When the user's group is removed, make sure
331
the group is in the gshadow database before calling sgr_remove().
332
* src/userdel.c: Improve warning's wording.
334
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
336
* libmisc/cleanup.c: Fix del_cleanup. The arguments were not
337
desynchronized with the cleanup functions.
338
* libmisc/cleanup.c: cleanup_function_args is an array of void
339
pointer, not strings.
341
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
343
* libmisc/find_new_gid.c: Fix find_new_gid() the current group
344
database was not taken into account.
346
2009-03-15 Nicolas François <nicolas.francois@centraliens.net>
348
* libmisc/addgrps.c: Fix compilation warnings.
350
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
352
* man/po/Makefile.in.in: xml2po cannot exclude one entity for
353
expansion. Make sure config.xml does not exist when the POT file
354
is created in order to keep the configurations in the POT file
355
* man/generate_translations.mak: make sure config.xml does not
356
exist neither when the translated XML is generated. Add the
357
missing %config; (strip out by xml2po). and make sure config.xml
358
is present when the translated manpage is generated.
359
* man/generate_mans.mak: config.xml is needed for the generation
360
of manpages (already in the .deps for the English manpages, but
361
needed for the translations).
362
* man/Makefile.am: Added missing CREATE_HOME.xml.
364
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
366
* etc/login.defs: Added note for PAM enabled configurations.
368
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
370
* man/Makefile.am: Compute the dependencies for building the
372
* man/generate_mans.deps: Added Makefile dependency rules.
374
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
376
* libmisc/addgrps.c: Fix warnings.
378
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
380
* man/po/fr.po: Added missing space.
382
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
384
* man/lastlog.8.xml: Document that there might be entries, for
385
deleted users, that are not displayed.
387
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
389
* man/chgpasswd.8.xml, man/chpasswd.8.xml: Fix the man page in
390
case SHA crypt is not supported.
392
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
394
* man/vipw.8.xml: MAX_MEMBERS_PER_GROUP is not used by vipw and
397
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
399
* man/login.defs.5.xml: Indicate that sg uses the same variables
401
* man/login.defs.5.xml: vipw does not use any variable.
402
* man/login.defs.5.xml: In PAM enabled configurations, login still
403
uses some login.defs variables.
405
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
407
* man/usermod.8.xml: use a <replaceable> instead of a
408
<emphasis remap='I'>.
410
2009-03-14 Nicolas François <nicolas.francois@centraliens.net>
412
* man/newusers.8.xml: Document the behavior of newusers for each
414
* man/newusers.8.xml: Do not add the note on PAM on non-PAM
415
enabled configurations.
417
2009-03-13 Nicolas François <nicolas.francois@centraliens.net>
419
* src/newusers.c: Make sure the SHA related variables are not
420
compiled when disabled at configuration time.
421
* src/newusers.c: Added FIXME
422
* src/chpasswd.c: Make sure the SHA related variables is not
423
compiled when disabled at configuration time.
424
* src/chgpasswd.c: Make sure the SHA related variables is not
425
compiled when disabled at configuration time.
426
* src/chgpasswd.c: Fix the test for getlong() failure.
427
* src/useradd.c, man/useradd.8.xml: Added long name for the -l
428
option: --no-log-init.
429
* src/faillog.c: Added support for the specification of a range of
431
* src/faillog.c: Do not call print_one() for users which do not
433
* src/faillog.c: Make sure the user's entry is not outside the
434
faillog file and initialize the faillog structure in that case.
435
* src/faillog.c: Move print_one() closer to print().
436
* src/faillog.c: reset(), setmax(), set_locktime() can also change
437
entries of user which do not exist.
438
* src/faillog.c: reset(), setmax() and set_locktime() shall not
439
create entries for users which have no entries if the value has to
441
* src/faillog.c: reset(), setmax() and set_locktime(): better
442
handling of users whose entry is outside the faillog file.
443
* src/faillog.c: Improved option handling. Options can now be
444
specified in any order.
445
* src/faillog.c: Improved warnings when options are not
446
compatible or when the faillog cannot be open with the right mode.
447
* src/faillog.c: Only fstat the faillog file once.
448
* man/faillog.8.xml: Improved documentation.
450
2009-03-13 Nicolas François <nicolas.francois@centraliens.net>
452
* src/gpasswd.c: Remove the documentation of options from the
453
main() documentation. It will always be outdated here.
455
2009-03-13 Nicolas François <nicolas.francois@centraliens.net>
457
* src/lastlog.c: lastlog variable renamed to ll to avoid name
458
clash with the structure.
459
* src/lastlog.c: check the offset in print_one() so that it is
460
used for the display of one entry or a set of entries.
461
* src/lastlog.c: Do not loop over the whole user database when -u
462
is used with a single user.
463
* src/lastlog.c: Check the size of the lastlog file so that we
464
can identify failures to read.
466
2009-03-13 Mike Frysinger <vapier@gentoo.org>
468
* libmisc/salt.c: Removed l64a prototype. The libc declaration is
469
non static, but the internal definition is static.
471
2009-03-09 Nicolas François <nicolas.francois@centraliens.net>
473
* src/gpasswd.c: log_gpasswd_success_gshadow only exists ifdef
476
2009-03-08 Nicolas François <nicolas.francois@centraliens.net>
478
* libmisc/getlong.c: Make sure the getlong argument is not empty.
479
* libmisc/get_gid.c, libmisc/get_uid.c, libmisc/Makefile.am,
480
lib/prototypes.h: Added get_uid() and get_gid() to parse user and
482
* NEWS, src/grpck.c, src/pwck.c: Issue a warning if an ID is set
484
* NEWS, src/newusers.c, src/usermod.c, src/useradd.c,
485
src/groupmod.c, src/groupadd.c: Make sure no user or group are
486
created with an ID set to -1.
488
2009-03-07 Nicolas François <nicolas.francois@centraliens.net>
490
* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
491
of snprintf in one of the format's parameters.
493
2009-03-07 Nicolas François <nicolas.francois@centraliens.net>
495
* man/groupmems.8.xml: groupmems does not create new user.
497
2009-03-03 Nicolas François <nicolas.francois@centraliens.net>
499
* NEWS, po/LINGUAS, po/kk.po: Added Kazakh translation. Thanks to
500
Timur Birsh <taem@linukz.org>.
502
2009-02-22 Nicolas François <nicolas.francois@centraliens.net>
504
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Avoid calling
505
getgrent()/getpwent() after they return NULL. This caused LDAP to
506
return at the beginning of the group/user entries.
508
2009-01-27 Nicolas François <nicolas.francois@centraliens.net>
510
* man/nologin.8.xml: Fix typo (HYSTORY -> HISTORY).
512
2009-01-26 Nicolas François <nicolas.francois@centraliens.net>
514
* NEWS, src/gpasswd.c: Only report success to audit and syslog
515
when the changes are committed to the system. Do not log failure
516
for on-memory changes to audit or syslog. Make sure failures and
517
inconsistencies will be reported in case of unexpected failures
518
(e.g. malloc failures). Only specify an audit message if it is not
519
implicitly implied by the type argument. Removed fail_exit
520
(replaced by atexit(do_cleanups)). Log failures in case of
523
2009-01-19 Nicolas François <nicolas.francois@centraliens.net>
525
* man/login.defs.d/UMASK.xml: Indicate how UMASK is used and
527
* man/limits.5.xml: Remove space before an end of tag.
528
* man/useradd.8.xml, man/login.defs.d/CREATE_HOME.xml,
529
man/login.defs.5.xml: Document the CREATE_HOME variable.
530
* etc/login.defs: Improve the documentation of UMASK.
532
2009-01-06 Sebastian Rick Rijkers <srrijkers@gmail.com>
534
* NEWS, src/su.c: Preserve COLORTERM in addition to TERM when su
535
is called with the -l option.
537
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
539
* libmisc/chkname.c: Use a bool when possible instead of integers.
540
* libmisc/chkname.c: Add brackets and parenthesis.
542
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
544
* man/groupadd.8.xml, configure.in, man/config.xml.in: Use the
545
real group name length limit in the documentation.
547
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
549
* src/Makefile.am: Only link with the needed library. When
550
compiled with PAM support, chfn, chsh, login, newgrp, passwd, and
551
su do not need the libcrypt library.
553
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
555
* libmisc/cleanup_group.c: Fix compilation when compiled without
556
shadow group support.
558
2008-12-23 Nicolas François <nicolas.francois@centraliens.net>
560
* src/groupdel.c: Remove the fail_exit () declaration.
562
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
564
* src/gpasswd.c: Fix the support for usernames with arbitrary
567
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
569
* src/groupadd.c, src/groupdel.c, src/groupmod.c: Re-indent.
570
* src/groupmod.c: Do not add the command synopsis to the main ()
571
documentation. This avoids outdated information.
572
* libmisc/chkname.c: Remove outdated comments.
574
2008-12-22 Nicolas François <nicolas.francois@centraliens.net>
576
* libmisc/audit_help.c: Added audit_logger_message() to log
577
messages not related to an account.
578
* lib/prototypes.h, libmisc/cleanup.c, libmisc/cleanup_group.c,
579
libmisc/cleanup_user.c, libmisc/Makefile.am: Added stack of
580
cleanup functions to be executed on exit.
581
* NEWS, src/groupadd.c, src/groupdel.c, src/groupmod.c: Only
582
report success to audit and syslog when the changes are committed
583
to the system. Do not log failure for on-memory changes to audit
584
or syslog. Make sure failures and inconsistencies will be reported
585
in case of unexpected failures (e.g. malloc failures). Only
586
specify an audit message if it is not implicitly implied by the
587
type argument. Removed fail_exit (replaced by atexit(do_cleanups)).
589
2008-12-15 Nicolas François <nicolas.francois@centraliens.net>
591
* NEWS, src/gpasswd.c: Added support usernames with arbitrary
594
2008-11-27 Mike Frysinger <vapier@gentoo.org>
596
* configure.in: Fix the "$enable_acct_tools_setuid" = "yes" test.
598
2008-11-27 Mike Frysinger <vapier@gentoo.org>
600
* NEWS, configure.in, libmisc/chkname.c: make group max length a
601
configure option. The configure behavior encoded is:
602
<no option> -> default of 16 (like today);
603
--with-group-name-max-length -> default of 16;
604
--without-group-name-max-length -> no max length;
605
--with-group-name-max-length=n > max is set to n.
607
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
609
* src/su.c: (!USE_PAM) Provide visible information indicating that
612
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
614
* man/su.1.xml: Fix the su synopsis. username is referenced in the
616
* man/ja/login.1: Fix the path of the utmp and wtmp files.
618
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
620
* libmisc/chowntty.c: Improve the logs for fchown and fchmod
622
* libmisc/chowntty.c: Only closelog() when failure cause an exit.
624
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
626
* NEWS, libmisc/chowntty.c: Fix a race condition that could lead to
627
gaining ownership or changing mode of arbitrary files.
628
* NEWS, libmisc/chowntty.c, libmisc/utmp.c: is_my_tty() moved from
629
utmp.c to chowntty.c. checkutmp() now only uses an existing utmp
630
entry if the pid matches and ut_line matches with the current tty.
631
This fixes a possible DOS when entries can be forged in the utmp
633
* libmisc/chowntty.c, src/login.c, lib/prototypes.h: Remove the
634
tty argument from chown_tty. chown_tty always changes stdin and
635
does not need this argument anymore.
637
2008-10-11 Nicolas François <nicolas.francois@centraliens.net>
639
* man/gshadow.5.xml, man/shadow.5.xml, man/passwd.5.xml,
640
man/grpck.8.xml: Sorted SEE ALSO references.
641
* man/gshadow.5.xml: Added reference to grpck(8) and grpconv(8).
642
* man/pwck.8.xml: Added reference to grpck(8).
643
* man/shadow.5.xml: Added reference to pwck(8).
644
* man/passwd.5.xml: Added reference to pwck(8).
645
* man/grpck.8.xml: Added reference to pwck(8).
647
2008-10-11 Nicolas François <nicolas.francois@centraliens.net>
649
* man/*.xml, man/login.defs.d/*.xml: Added copyright and licence
652
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
654
* src/login.c: Always check the return value of the pam_* APIs.
656
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
658
* src/login.c: Use a dynamic buffer for usernames.
659
* src/login.c: Copy the name of the user authenticated by PAM to
660
username. This simplify later logging (avoid USE_PAM
662
* src/login.c: Check that no username is specified with -r.
663
* src/login.c: Make sure a username is specified with -f.
664
* src/login.c: Explicitly tag the end of the #ifdef RLOGIN
666
* src/login.c: Erase the username later since it it used for the
667
fake password check (in case of empty password).
668
* src/login.c, man/login.1.xml: the username is not an optional
669
parameter of -f. Fix the getopt optstring, remove the parsing of
670
username in the -f processing block, and remove unnecessary checks
671
(username cannot be parsed twice anymore), better documentation of
674
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
676
* src/login.c: Existence of pam_user was already checked. pwd was
677
already copied to pwent. Remove duplicated code.
679
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
681
* src/login.c: check_flags() renamed process_flags(). All flag
682
processing blocs moved to process_flags().
684
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
686
* src/logoutd.c, src/userdel.c: Re-indent. This helps pmccabe.
688
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
690
* src/login.c: Add missing closing }. This was probably never
691
noticed because UT_ADDR is never defined.
692
* src/login.c: Re-indent.
694
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
696
* src/login.c: Do not mix USE_PAM and !USE_PAM code.
698
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
700
* src/login.c: Use failent_user to log to audit. username is the
701
caller, not the user login tries to authenticate.
702
* src/login.c: Use pwd->pw_name instead of pwd->pw_uid. This might
703
be more precise (name must be unique, uid might not be).
705
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
707
* man/passwd.1.xml: passwd cannot change the full name of the
708
user, the user's login shell; but it can change the account or
709
password validity period. Thanks to Reuben Thomas.
711
2008-09-14 Nicolas François <nicolas.francois@centraliens.net>
713
* src/useradd.c: Added missing declaration of Mflg.
714
* src/pwck.c: Only unlock files if they were locked before (e.g.
715
not in read-only mode).
716
* src/pwck.c: Quote the username in error messages (harmonization
717
with other messages).
718
* libmisc/find_new_gid.c: Fixed typo (s/grp->gr_gid/group_id/).
719
* libmisc/find_new_gid.c: Likewise.
721
2008-09-13 Nicolas François <nicolas.francois@centraliens.net>
723
* libmisc/setugid.c, src/login_nopam.c, src/suauth.c,
724
lib/getdef.c: Replace the %m format string by strerror(). This
725
avoids errno to be reset between the system call error and the
728
2008-09-13 Nicolas François <nicolas.francois@centraliens.net>
730
* lib/commonio.c: Ignore the return value of umask() when the mask
731
is set to the old value.
733
2008-09-11 Nicolas François <nicolas.francois@centraliens.net>
735
* NEWS, etc/login.defs: New CREATE_HOME variable to tell useradd
736
to create a home directory for new users.
737
* src/useradd.c, man/useradd.8.xml: New -M/--no-create-home option
738
and CREATE_HOME usage. System accounts are not impacted by
740
* man/useradd.8.xml: Indicate that a new group is created by
742
* src/useradd.c: Removed TODO item (moved to the TODO file).
744
2008-09-11 Miroslav Kuře <kurem@debian.cz>
746
* po/cs.po: Updated Czech translation.
748
2008-09-11 Nicolas François <nicolas.francois@centraliens.net>
750
* man/login.defs.d/USERGROUPS_ENAB.xml: Fix typo: new <para> tag
751
before the previous one is closed. This caused a missng
752
explanation for USERGROUPS_ENAB.
754
2008-09-11 Nicolas François <nicolas.francois@centraliens.net>
756
* man/groupadd.8.xml: Remove the list of (short) options from the
757
SYNOPSIS. Replaced with [options] for consistency with other tools
760
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
762
From RedHat's patch shadow-4.1.2-sysAccountDownhill.patch
763
Thanks to Peter Vrabec.
764
* NEWS, libmisc/find_new_gid.c, libmisc/find_new_uid.c: Build an
765
index of used IDs to avoid a database request for each id in the
766
allowed range (when the highest allowed ID is already used).
767
This speedups the addition of users or groups when the highest
768
allowed ID is already used. The additional memory usage of the
769
tools should be acceptable when UID_MAX/SYS_UID_MAX are set to a
772
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
774
* configure.in: Fix the dependency of ACCT_TOOLS_SETUID on
775
USE_PAM. Build failed with --without-libpam.
777
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
779
* libmisc/copydir.c, configure.in: Check for the presence of
780
st_mtim and st_mtimensec, as for st_atim and st_atimensec.
781
* libmisc/copydir.c: Call utimes() after closing the file.
783
2008-09-07 Nicolas François <nicolas.francois@centraliens.net>
785
* src/gpasswd.c: Document the long options in the usage.
787
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
789
* NEWS: Added configure --enable-account-tools-setuid (default) /
790
--disable-account-tools-setuid options. This permits to disable
791
the PAM authentication of the caller for chage, chgpasswd,
792
chpasswd, groupadd, groupdel, groupmod, newusers, useradd,
793
userdel, and usermod. This authentication is not necessary when
794
these tools are not installed setuid root.
795
* configure.in: Added option --enable-account-tools-setuid to
796
enable/disable the usage of PAM to authenticate the callers of
797
account management tools: chage, chgpasswd, chpasswd, groupadd,
798
groupdel, groupmod, useradd, userdel, usermod.
799
* src/Makefile.am: Do not link the above tools with libpam if
800
account-tools-setuid is disabled.
801
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/usermod.c,
802
src/groupdel.c, src/chgpasswd.c, src/useradd.c, src/groupmod.c,
803
src/groupadd.c, src/chage.c: Implement ACCT_TOOLS_SETUID
804
(--enable-account-tools-setuid).
805
* etc/pam.d/Makefile.am: Install the pam service file for the
806
above tools only when needed.
808
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
810
* libmisc/tz.c: tz() is only used when USE_PAM is not defined.
811
* lib/prototypes.h: Indicate functions whose presence depends on
814
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
816
* src/groupmems.c: Call open_files() and close_files().
817
* src/groupmems.c: Always call check_perms(), which takes care of
818
checking if --list is used.
820
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
822
* libmisc/obscure.c: Compare characters to '\0', not NULL.
824
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
826
* lib/defines.h: Do not include <config.h>. This complicate
827
undefining some configuration macros when the file is included
829
* libmisc/xgetXXbyYY.c, libmisc/xgetpwnam.c, libmisc/xgetpwuid.c,
830
libmisc/xgetgrgid.c, libmisc/xgetgrnam.c, libmisc/xgetspnam.c:
831
Include <config.h> from teh compiled C file, not the included
834
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
836
* src/userdel.c, src/newusers.c, src/chpasswd.c, src/chfn.c,
837
src/groupmems.c, src/usermod.c, src/groupdel.c, src/chgpasswd.c,
838
src/useradd.c, src/groupmod.c, src/groupadd.c, src/chage.c,
839
src/chsh.c: Simplify the PAM error handling. Do not keep the pamh
840
handle, but terminate the PAM transaction as soon as possible if
841
there are no PAM session opened. If the username cannot be
842
determined, report it as such (not a PAM authentication failure).
843
* src/useradd.c, src/userdel.c, src/usermod.c: It is no more
844
needed to initialize retval to PAM_SUCCESS.
846
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
848
* src/newgrp.c, src/userdel.c, src/grpck.c, src/gpasswd.c,
849
src/newusers.c, src/pwconv.c, src/chpasswd.c, src/logoutd.c,
850
src/chfn.c, src/groupmems.c, src/usermod.c, src/pwunconv.c,
851
src/expiry.c, src/groupdel.c, src/chgpasswd.c, src/useradd.c,
852
src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c,
853
src/groupadd.c, src/chage.c, src/login.c, src/grpconv.c,
854
src/groups.c, src/grpunconv.c, src/chsh.c: Prog is now global (not
855
static to the file) so that it can be used by the helper functions
857
* lib/prototypes.h: Added extern char *Prog.
858
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: Indicate the
859
program name with the warning.
861
2008-09-05 Nicolas François <nicolas.francois@centraliens.net>
863
* configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER,
864
AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in <libaudit.h>.
866
2008-09-04 Nicolas François <nicolas.francois@centraliens.net>
868
* src/useradd.c: Fix comment of lflg: it is also used for faillog.
870
2008-09-04 Nicolas François <nicolas.francois@centraliens.net>
872
* NEWS, src/groupmems.c, man/groupmems.8.xml: Document the long
875
2008-09-03 Nicolas François <nicolas.francois@centraliens.net>
877
* lib/prototypes.h, libmisc/audit_help.c: Define new type
878
shadow_audit_result for the result argument of audit_logger().
879
This permits stronger type checking and a better readability of
880
the results (SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS constants).
881
* src/groupadd.c, src/groupdel.c, src/useradd.c, src/userdel.c:
882
Use the SHADOW_AUDIT_FAILURE/SHADOW_AUDIT_SUCCESS results instead
883
of 0 or 1 in audit_logger().
885
2008-09-03 Nicolas François <nicolas.francois@centraliens.net>
887
* src/userdel.c: Log failures to remove the mailbox to syslog and
889
* src/userdel.c: Log successful removal of home directory to audit
890
only in case of success.
891
* src/userdel.c: Move the audit log of failure to remove the home
892
directory before the call to function that may exit.
893
* src/userdel.c: Document that errors is only used to count errors
894
during the removal of the home directory.
896
2008-09-03 Nicolas François <nicolas.francois@centraliens.net>
898
* src/useradd.c: Log errors to syslog in grp_update() since
899
changes have started to be reported to syslog.
900
* src/userdel.c: Fix some result parameters sent to
903
2008-09-02 Nicolas François <nicolas.francois@centraliens.net>
905
* NEWS: Following changes from a patch contributed by Steve Grubb
907
* src/groupadd.c: Log to audit with type AUDIT_ADD_GROUP instead
908
of AUDIT_USER_CHAUTHTOK.
909
* src/groupdel.c: Log to audit with type AUDIT_DEL_GROUP instead
910
of AUDIT_USER_CHAUTHTOK.
911
* src/useradd.c: Log to audit with type AUDIT_ADD_USER /
912
AUDIT_ADD_GROUP / AUDIT_USYS_CONFIG instead of
913
AUDIT_USER_CHAUTHTOK.
914
* src/useradd.c: Add missing logs to audit.
915
* src/userdel.c: Log to audit with type AUDIT_DEL_USER /
916
AUDIT_DEL_GROUP instead of AUDIT_USER_CHAUTHTOK.
917
* src/userdel.c: Add missing logs to audit.
919
2008-08-31 Nicolas François <nicolas.francois@centraliens.net>
921
* src/groupmems.c: Remove duplicated gr_open().
923
2008-08-30 Nicolas François <nicolas.francois@centraliens.net>
925
* man/useradd.8.xml: Document the /etc/default/useradd variables.
926
* man/useradd.8.xml: Fix the documentation of the GROUP variable
927
(and -g/--gid option).
928
* man/useradd.8.xml: Document that -o is only valid with -u
930
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
932
* shadow.spec.in: Fix the source (new FTP).
934
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
936
* src/su.c: Add brackets and parenthesis.
937
* src/su.c: Avoid implicit conversion of pointers to booleans.
939
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
941
* libmisc/list.c: Remove historical comment.
942
* libmisc/list.c: Added assertions for non NULL parameters.
944
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
946
* src/pwconv.c, src/pwunconv.c: Fail if unexpected parameters are
949
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
951
* src/passwd.c: Add brackets and parenthesis.
952
* src/passwd.c: Avoid implicit conversion of pointers to booleans.
953
* src/passwd.c: Avoid assignments in comparisons.
955
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
957
* NEWS, src/groupmems.c, man/groupmems.8.xml: Added support for
959
* src/groupmems.c: Use fail_exit() instead of exit().
961
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
963
* src/groupmems.c: The grp structure returned by gr_locate is a
964
const. Duplicate this structure before working on it.
965
* src/groupmems.c: Do not fail and do not display warnings if a
966
close failure happens with the --list option. (Files are opened
968
* src/groupmems.c: Avoid mixed declarations and code.
970
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
972
* src/gpasswd.c: Replace the 'valid' variable by is_valid to avoid
973
clashes with the valid() function.
975
2008-08-29 Nicolas François <nicolas.francois@centraliens.net>
977
* libmisc/obscure.c: Add brackets and parenthesis.
978
* libmisc/obscure.c: Avoid implicit conversion of pointers / chars to
980
* libmisc/obscure.c: Simplify the list of if.
982
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
984
* src/passwd.c: Fix a typo in the Usage string.
986
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
988
* src/grpconv.c, src/groups.c: Name the parameters in the
989
prototypes of the static functions.
990
* src/grpconv.c, src/grpunconv.c, src/logoutd.c: Fail if
991
unexpected parameters are provided.
992
* src/grpconv.c, src/grpunconv.c: Indicate that argc is not used
993
in the no SHADOWGRP version.
995
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
997
* src/chgpasswd.c, src/chpasswd.c: Removed variable ok, which is
1000
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
1002
* src/chage.c: Fix the format for long integers (from %ul to %lu).
1004
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
1006
* libmisc/utmp.c: Mark the line and host arguments of setutmp() as
1007
not used in the __linux__ version.
1009
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
1011
* lib/nscd.c: Avoid redefinition of _GNU_SOURCE.
1013
2008-08-28 Nicolas François <nicolas.francois@centraliens.net>
1015
* configure.in: Indentation fix.
1016
* configure.in, src/login.c: Do not use HAVE_PAM_FAIL_DELAY, but
1017
HAS_PAM_FAIL_DELAY, to avoid a redefinition with Linux PAM.
1019
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
1021
* src/groupmems.c: Added functions add_user(), remove_user(), and
1022
purge_members() to ease the support of gshadow.
1024
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
1026
* src/expiry.c: Use Basename for Prog.
1027
* src/expiry.c: Added missing OPENLOG.
1029
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
1031
* lib/nscd.c: Make sure the file is not empty when configured
1032
without nscd support.
1034
2008-08-27 Nicolas François <nicolas.francois@centraliens.net>
1036
* configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is
1037
not used in any Makefile.am).
1038
* configure.in: Make sure posix_spawn is present when configured
1041
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1043
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Added brackets and
1045
* lib/groupmem.c, lib/pwmem.c, lib/shadowmem.c: Avoid assignments
1048
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1050
* libmisc/mail.c: Added brackets and parenthesis.
1051
* libmisc/mail.c: Avoid assignments in comparisons.
1053
2008-08-26 Tobias Poschwatta <tp@fonz.de>
1055
* NEWS: Added support for uclibc.
1056
* configure.in, libmisc/copydir.c: futimes() and lutimes() are not
1057
standard. Check if they are implemented before using them. Do not
1058
set the time of links if lutimes() does not exist, and use
1059
utimes() as a replacement for futimes().
1060
* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd and
1061
--without-nscd flags to support systems without nscd.
1062
* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
1063
Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
1064
for the definition of uid_t and gid_t.
1065
* lib/pwmem.c: do not include <pwd.h>, "pwio.h" is sufficient
1067
* configure.in: Check if the stat structure has a st_atim or
1069
* libmisc/copydir.c: Conditionally use the stat's st_atim and
1070
st_atimensec fields.
1072
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1074
* src/groupmems.c: Handle the options alphabetically.
1076
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1078
* src/groupmems.c: When removing an user, check if deluser is on
1079
the list, not adduser. This fixes a segmentation fault for every
1080
call of groupmems -d.
1081
* libmisc/list.c: Add assertions to help identifying these issues.
1082
* libmisc/list.c: Avoid implicit conversion of pointers to
1085
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1087
* NEWS, src/groupmems.c: Use the "groupmems" PAM service name
1088
instead of "groupmod".
1090
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1092
* src/chfn.c: Merge some translated messages.
1093
* src/groupmems.c, src/groupadd.c, src/gpasswd.c, src/chsh.c,
1094
src/chfn.c: Harmonize *_update() failure messages.
1095
* src/groupmems.c: Harmonize gr_close() failure messages.
1096
* src/newgrp.c: Harmonize "unknown GID" messages.
1097
* src/newusers.c: Move the pwd declaration to a inner block scope.
1099
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
1101
* src/useradd.c: Harmonize some error messages.
1102
* src/userdel.c: Add log to syslog when the mail file could not be
1104
* src/userdel.c: Give more context an error message (merge with
1106
* src/usermod.c: Harmonize some error messages.
1108
2008-08-25 Nicolas François <nicolas.francois@centraliens.net>
1110
* src/groupmems.c: Check the return value of gr_update().
1111
* src/chage.c, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
1112
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupmems.c,
1113
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
1114
src/passwd.c, src/pwck.c, src/pwconv.c, src/pwunconv.c,
1115
src/useradd.c, src/userdel.c, src/usermod.c: Harmonize the error
1116
message sent to stderr in case of *_update () failure.
1117
* src/chage.c, src/chsh.c, src/groupadd.c, src/passwd.c: Do not
1118
log to syslog when pw_update() or spw_update() fail.
1119
* src/newusers.c: Do not log specific error message to stderr when
1121
* src/pwconv.c: Remove duplicated definition of Prog.
1123
2008-08-25 Nicolas François <nicolas.francois@centraliens.net>
1125
* src/chfn.c, src/chsh.c, src/expiry.c, src/gpasswd.c,
1126
src/newgrp.c, src/passwd.c, src/su.c: Use the same stderr and
1127
syslog warnings when the username cannot be determined.
1128
* src/newgrp.c: Reuse the same stderr message for groups which do
1129
not exist in the system.
1131
2008-08-21 Nicolas François <nicolas.francois@centraliens.net>
1133
* src/usermod.c: Log errors while *_close to syslog.
1135
2008-08-21 Nicolas François <nicolas.francois@centraliens.net>
1137
* src/grpconv.c: Use Basename for the definition of Prog. Prog
1138
needs a file visibility.
1139
* src/grpunconv.c: Likewise.
1141
2008-08-20 Nicolas François <nicolas.francois@centraliens.net>
1143
* src/chfn.c: Do not exit on pw_unlock failures.
1144
* src/grpconv.c, src/grpunconv.c, src/pwconv.c, src/pwunconv.c,
1145
src/vipw.c: Open syslog with the right identification name.
1146
* src/vipw.c: Log unlock errors to syslog.
1147
* src/vipw.c: Log edits to syslog.
1148
* src/chage.c, src/chfn.c, src/chsh.c, src/gpasswd.c,
1149
src/groupadd.c, src/groupdel.c, src/groupmod.c, src/grpconv.c,
1150
src/grpunconv.c, src/passwd.c, src/pwck.c, src/pwunconv.c,
1151
src/useradd.c, src/usermod.c: Harmonize the syslog levels. Failure
1152
to close or unlock are errors. Failure to open files are warnings.
1154
2008-08-20 Nicolas François <nicolas.francois@centraliens.net>
1156
* src/newusers.c: Open syslog with the right identification name.
1157
* src/newusers.c: Mark the files as locked only if they are really
1158
locked (i.e. if shadow is not enabled, the files are not locked).
1160
2008-08-20 Nicolas François <nicolas.francois@centraliens.net>
1162
* NEWS, src/gpasswd.c: Use getopt_long instead of getopt. Added
1163
support for long options --add (-a), --delete (-d),
1164
--remove-password (-r), --restrict (-R), --administrators (-A),
1166
* man/gpasswd.1.xml: Document the new long options.
1167
* src/gpasswd.c: The sgrp structure is only used if SHADOWGRP is
1170
2008-08-18 Nicolas François <nicolas.francois@centraliens.net>
1172
* src/grpck.c: Added function fail_exit(). Check failure to unlock
1173
files. Report errors to stderr and syslog, but continue.
1174
* src/grpconv.c: Check failure to unlock files. Report errors to
1175
stderr and syslog, but continue.
1177
2008-08-18 Nicolas François <nicolas.francois@centraliens.net>
1179
* src/passwd.c: Check failure to unlock files. Report errors to
1180
stderr and syslog, but continue.
1182
2008-08-17 Nicolas François <nicolas.francois@centraliens.net>
1184
* src/chfn.c, src/chgpasswd.c, src/chpasswd.c, src/gpasswd.c,
1185
src/groupadd.c, src/groupdel.c, src/groupmems.c, src/groupmod.c,
1186
src/grpconv.c, src/grpunconv.c, src/newusers.c, src/pwconv.c,
1187
src/pwunconv.c, src/useradd.c, src/userdel.c: Harmonize the name
1188
of the variables keeping the lock status, to match the shadow
1191
2008-08-17 Nicolas François <nicolas.francois@centraliens.net>
1193
* src/chage.c, src/chgpasswd.c, src/chpasswd.c, src/chsh.c,
1194
src/gpasswd.c, src/groupadd.c, src/groupdel.c, src/groupmems.c,
1195
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
1196
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
1197
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c: In
1198
case of a lock failure, indicate to the user that she can try
1199
again later. Do not log to syslog.
1201
2008-08-17 Nicolas François <nicolas.francois@centraliens.net>
1203
* NEWS, src/passwd.c: For compatibility with other passwd version,
1204
the --lock an --unlock options do not lock or unlock the user
1205
account anymore. They only lock or unlock the user's password.
1206
* man/passwd.1.xml: Document above change. Document how an account
1207
can be locked and what a password lock means.
1209
2008-08-15 Nicolas François <nicolas.francois@centraliens.net>
1211
* man/groupadd.8.xml: Fix the regular expression for group policy.
1212
The final $ character is optional.
1213
* man/groupadd.8.xml: Likewise.
1214
* man/groupadd.8.xml: Indicate the maximum size of usernames.
1216
2008-08-15 Nicolas François <nicolas.francois@centraliens.net>
1218
* man/po/pl.po: Fix typo in the Polish translation (see
1219
http://bugs.debian.org/491460)
1221
2008-08-13 Nicolas François <nicolas.francois@centraliens.net>
1223
* man/pl/Makefile.am: Do not build the Polish translation of
1224
login.1 and su.1 (not enough translated). See
1225
http://bugs.debian.org/491460
1227
2008-08-13 Nicolas François <nicolas.francois@centraliens.net>
1229
* man/shadow.5.xml: Fix typo. The password must be changed before
1230
the maximum number of days, not after.
1232
2008-08-09 Nicolas François <nicolas.francois@centraliens.net>
1234
* src/groupmems.c: Harmonize the unlock failure messages.
1236
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1238
* src/pwck.c: Added fail_exit().
1239
* src/pwck.c: Report failure to unlock files to stderr and
1241
* src/pwck.c: Report failure to sort to stderr, and exit with
1243
* man/pwck.8.xml: Document return code 6 (E_CANTSORT).
1245
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1247
* src/vipw.c: Report failures to remove files to stderr.
1248
* src/vipw.c: Report failures to unlock files to stderr.
1250
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1252
* NEWS, src/groupmems.c: Added syslog support.
1253
* src/groupmems.c: members() renamed display_members() to
1254
avoid name clash with its members argument.
1255
* src/groupmems.c: Report failure to unlock to syslog.
1256
* src/groupmems.c: Harmonize error messages.
1257
* src/groupmems.c: Report failures to write the new group file to
1258
syslog (gr_close() failure).
1259
* src/groupmems.c: Don't use fail_exit for non-failure exit.
1261
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1263
* src/chsh.c: Added fail_exit().
1264
* src/chsh.c: Use fail_exit() instead of exit(), this avoid
1265
calling closelog() every times.
1266
* src/chsh.c: Ignore the return value or pam_end().
1267
* src/chsh.c: Simplify the PAM error handling.
1268
* src/chsh.c: Report failure to unlock files to stderr and
1271
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1273
* src/chpasswd.c: Added fail_exit().
1274
* src/chpasswd.c: Added support for syslog.
1275
* src/chpasswd.c: Report failure to unlock files to stderr and
1277
* src/chpasswd.c: Simplify the PAM error handling.
1278
* src/chpasswd.c: Report failure during *_close() to syslog.
1279
* src/chpasswd.c: Ignore the return value or pam_end().
1281
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1283
* src/chgpasswd.c: Added fail_exit().
1284
* src/chgpasswd.c: Added support for syslog.
1285
* src/chgpasswd.c: Report failure to unlock files to stderr and
1287
* src/chgpasswd.c: Simplify the PAM error handling.
1288
* src/chgpasswd.c: Report failure during *_close() to syslog.
1289
* src/chgpasswd.c: Ignore the return value or pam_end().
1291
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1293
* src/userdel.c: Report failure to remove entries from group or
1295
* src/userdel.c: Fail in case of failure during the write of a
1296
user or group database. Report errors to syslog.
1297
* src/userdel.c: Do not unlock non locked files.
1298
* src/userdel.c: Report failure to unlock the passwd or shadow
1299
file to stderr and syslog.
1301
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1303
* src/pwunconv.c: Report failure to unlock the passwd or shadow
1304
file to stderr and syslog.
1306
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1308
* src/usermod.c: Report failure to unlock files to stderr and
1311
2008-08-07 Nicolas François <nicolas.francois@centraliens.net>
1313
* src/newusers.c: Report failure to unlock files to stderr and
1315
* src/newusers.c: In case of error when files are open or closed,
1316
indicate the failing file.
1317
* src/newusers.c: Do not try to unlock the files manually since
1318
this is done in fail_exit.
1320
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
1322
* src/chage.c: Report failure to unlock the passwd or shadow file
1323
to stderr and syslog.
1325
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
1327
* src/pwconv.c: Report failure to unlock the passwd or shadow file
1328
to stderr and syslog.
1329
* src/pwconv.c: Report failure to chmod the backup file.
1331
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
1333
* src/grpunconv.c: Report failure to unlock the group or gshadow
1334
files to stderr and syslog.
1336
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
1338
* src/chfn.c: Added fail_exit(). Check if the passwd file is
1339
locked. Report failures to unlock to stderr and syslog.
1340
* src/chfn.c: Is case of failure, use fail_exit() rather than
1342
* src/chfn.c: Ignore the return value of pam_end().
1344
2008-08-06 Nicolas François <nicolas.francois@centraliens.net>
1346
* lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
1347
lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c, lib/shadowio.h:
1348
Added *_dbname() functions to retrieve the name of the databases.
1349
* lib/groupio.c, lib/groupio.h, lib/pwio.c, lib/pwio.h,
1350
lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c, lib/shadowio.h:
1351
*_name() functions renamed *setname().
1352
* src/grpck.c, src/pwck.c: Likewise.
1353
* lib/groupio.h, lib/pwio.h, lib/sgroupio.h, lib/shadowio.h: Added
1354
the name of the arguments to the prototypes.
1355
* src/chage, src/chfn.c, src/chgpasswd.c, src/chpasswd.c,
1356
src/chsh.c, src/gpasswd.c, src/groupadd.c, src/groupdel.c,
1357
src/groupmod.c, src/grpck.c, src/grpconv.c, src/grpunconv.c,
1358
src/newusers.c, src/passwd.c, src/pwck.c, src/pwconv.c,
1359
src/pwunconv.c, src/useradd.c, src/userdel.c, src/usermod.c:
1360
Harmonize the erro & syslog messages in case of failure of the
1361
*_lock(), *_open(), *_close(), *_unlock(), *_remove() functions.
1362
* src/chgpasswd.c, src/chpasswd.c, src/usermod.c: Avoid
1363
capitalized messages.
1364
* src/chpasswd.c, src/useradd.c, src/usermod.c: Harmonize messages
1365
in case of inexistent entries.
1366
* src/usermod.c: Harmonize messages in case of already existing
1368
* src/newusers.c, src/useradd.c: Simplify PAM error handling.
1369
* src/useradd.c: Report failures to unlock files (stderr, syslog,
1370
and audit). But do not fail (continue).
1371
* src/useradd.c (open_files): Do not report to syslog & audit
1372
failures to lock or open the databases. This might be harmless,
1373
and the logs were not already informed that a change was
1375
* src/usermod.c: It's not the account which is unlocked, but its
1378
2008-08-02 Nicolas François <nicolas.francois@centraliens.net>
1380
* src/groupadd.c: Harmonize error & syslog messages.
1381
* src/groupadd.c: Add logging to syslog & audit on lock/unlock
1383
* src/groupadd.c: Only call gr_unlock() and sgr_unlock() in the
1384
group or gshadow files were previously locked.
1385
* src/groupadd.c: Make sure failures are reported to syslog/audit
1386
after the change is mentioned.
1387
* src/groupmod.c: Harmonize error & syslog messages.
1388
* src/groupmod.c: Add logging to syslog & audit on lock/unlock
1390
* src/groupmod.c: Make sure issues are reported to syslog or audit
1391
after the change is mentioned.
1392
* src/groupdel.c: Harmonize error & syslog messages.
1393
* src/groupdel.c: Add logging to syslog & audit on lock/unlock
1395
* src/groupdel.c: Only call gr_unlock() and sgr_unlock() in the
1396
group or gshadow files were previously locked.
1397
* src/groupdel.c: Simplify the handling of PAM errors.
1399
2008-08-01 Nicolas François <nicolas.francois@centraliens.net>
1401
* src/gpasswd.c: Harmonize error & syslog messages.
1402
* src/gpasswd.c: Warn and log to syslog and audit when group or
1403
gshadow cannot be unlocked, but do not fail.
1405
2008-08-01 Nicolas François <nicolas.francois@centraliens.net>
1407
* src/chfn.c, src/chsh.c, src/groupdel.c, src/groupmems.c,
1408
src/groupmod.c, src/grpck.c, src/login.c, src/logoutd.c,
1409
src/newgrp.c, src/newusers.c, src/passwd.c, src/pwck.c,
1410
src/suauth.c, src/useradd.c, src/userdel.c, src/usermod.c,
1411
src/vipw.c: Complete the switch from the `' quotation style to ''.
1412
Do it also in SYSLOG messages. Quote some parameters. All this
1413
permits to merge some messages.
1415
2008-07-30 Lukáš Kuklínek <lkukline@redhat.com>
1417
* src/groupmems.c: Only check if the adduser user exists when an
1418
user is specified with -a.
1420
2008-07-30 Nicolas François <nicolas.francois@centraliens.net>
1422
* src/groupmems.c: Fix the groupmems' usage message. The -D option
1425
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1427
* src/groupmems.c: Replace an if test by an else.
1429
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1431
* src/groupmems.c: Ignore the return value of fputs().
1433
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1435
* src/groupmems.c (whoami): Make sure usr and grp are not NULL
1436
before dereferencing them.
1438
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1440
* src/groupmems.c: Use xstrdup() rather than strdup().
1442
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1444
* src/groupmems.c: Add parenthesis.
1445
* src/groupmems.c: Avoid implicit conversion of pointers / chars to
1448
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1450
* NEWS, src/groupmems.c: Allow everybody to list the users of a group.
1451
This information is publicly available in /etc/group.
1452
* NEWS, src/groupmems.c: Open /etc/group read only for the -l option.
1454
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1456
* man/groupmems.8.xml: Sort options alphabetically.
1458
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1460
* src/groupmems.c (check_perms): Simplify. Always call pam_end()
1461
at the end of the authentication.
1463
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1465
* src/groupmems.c: Add fail_exit() to remove the group lock file
1466
in case of failure. Replace the calls to exit() by fail_exit().
1468
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1470
* src/groupmems.c: Reduce the number of checks. Isolate the
1471
parameters setting and permissions checking.
1473
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1475
* src/groupmems.c: Add functions process_flags() and check_perms()
1476
from code of main().
1477
* src/groupmems.c: Harmonize the failure message in case of PAM
1478
failure with the other programs.
1480
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1482
* src/groupmems.c: Remove isgroup(), which always returns TRUE.
1484
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1486
* src/groupmems.c: Reuse the functions from libmisc/list.c to deal
1487
with user lists. addtogroup() was broken when realloc() move the
1489
* src/groupmems.c: Report failures with the name of the program.
1491
2008-07-27 Nicolas François <nicolas.francois@centraliens.net>
1493
* src/groupmems.c: EXIT_READ_GROUP changed to EXIT_INVALID_GROUP.
1494
* src/groupmems.c: EXIT_INVALID_USERNAME changed to EXIT_INVALID_USER.
1496
2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
1498
* src/groupmems.c: Really use booleans.
1499
* src/groupmems.c: Change isroot() to a macro that returns a
1502
2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
1504
* lib/defines.h: Make sure the booleans are defined before using
1507
2008-07-26 Nicolas François <nicolas.francois@centraliens.net>
1509
* src/groupmems.c: Added Prog global variable to indicate the name
1510
of the program in error messages.
1512
2008-07-22 Lukáš Kuklínek <lkukline@redhat.com>
1514
* NEWS, src/groupmems.c: Check if the user added to group actually
1515
exist. RedHat bug #455603
1516
* NEWS, src/groupmems.c: Check if the group exists in the group
1517
local database (/etc/group). RedHat bug #456088
1519
2008-07-22 Nicolas François <nicolas.francois@centraliens.net>
1521
* lib/prototypes.h: Fix getrange prototype.
1523
2008-07-21 Seraphim Mellos <mellos@ceid.upatras.gr>
1525
* README, NEWS, configure.in, lib/pam_defs.h, src/login.c: Add
1526
support for OpenPAM.
1528
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
1530
* src/chage.c: Ignore the return value of pam_end() before exiting.
1531
* src/chage.c: Ignore return values of strftime(), snprintf(),
1532
puts(), printf(), and fputs().
1533
* src/chage.c: Check the return value of asctime().
1535
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
1537
* lib/gshadow.c: Avoid assignments in comparison.
1539
2008-07-12 Nicolas François <nicolas.francois@centraliens.net>
1541
* ChangeLog, NEWS, src/login.c: Re-inject the changes from 4.1.2.1.
1543
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
1545
* src/usermod.c: Do not call usr_update() if it will have no
1546
effects. This avoid checking if the user exists in the local passwd
1547
file if not necessary, and thus allow to add LDAP users to local
1548
groups. (The user is already checked against the system
1549
configuration with getpwnam()). Thanks to Dan Kopecek.
1551
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
1553
* src/usermod.c: Split update_files() into update_lastlog() and
1554
update_faillog(). Report errors (but don't fail) if the file
1555
exist, but open(), lseek(), read(), write(), or close() fails.
1556
* src/usermod.c: Add brackets and parenthesis.
1557
* src/usermod.c: Ignore the return value of pam_end() before
1559
* src/usermod.c: Ignore the return value of strftime(),
1560
snprintf(), and puts().
1561
* src/usermod.c: Check the return value of gmtime() and asctime(),
1562
and output the raw time_t on failures.
1564
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
1566
* libmisc/setugid.c: Add brackets.
1568
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
1570
* libmisc/env.c: Avoid implicit conversion of pointers / chars to
1572
* libmisc/env.c: Add brackets and parenthesis.
1573
* libmisc/env.c: Ignore the return value of puts() and fputs().
1574
* libmisc/env.c: Avoid multi-statements lines.
1576
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
1578
* libmisc/utmp.c: Avoid implicit conversion of pointers / chars to
1580
* libmisc/utmp.c: Add brackets and parenthesis.
1581
* libmisc/utmp.c: Exit with the EXIT_FAILURE status code in case
1583
* libmisc/utmp.c: Avoid assignments in comparisons.
1584
* lib/prototypes.h, libmisc/utmp.c: Change setutmp()'s prototype
1585
to return an int because pututline() and pututxline() may fail.
1587
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
1589
* libmisc/audit_help.c: Added one string for translation.
1590
* po/POTFILES.in: Added libmisc/audit_help.c,
1591
libmisc/find_new_gid.c, libmisc/find_new_uid.c, libmisc/getlong.c,
1592
libmisc/getrange.c, libmisc/xgetXXbyYY.c, and libmisc/yesno.c.
1593
Removed libmisc/find_new_ids.c
1595
2008-06-16 Nicolas François <nicolas.francois@centraliens.net>
1597
* src/useradd.c: If the faillog file exist, warn in case of
1598
failure when open(), lssek(), write() or close() fails when the
1599
new user's faillog entry is reset.
1600
* src/useradd.c: Ditto for the lastlog entry.
1602
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1604
* libmisc/limits.c: Add brackets and parenthesis.
1605
* libmisc/limits.c: Avoid implicit conversion of pointers /
1606
integers to booleans.
1607
* libmisc/limits.c: Ignore the return value of umask(). We will
1608
never return to the original umask.
1609
* libmisc/limits.c: Avoid multi-statements lines.
1610
* libmisc/limits.c: Added default to a switch(). Report invalid
1611
limit strings to syslog.
1612
* libmisc/limits.c: Ignore the return value of fclose().
1613
/etc/limits is open read-only.
1614
* libmisc/limits.c: Ignore the return value of fputs() and
1616
* libmisc/limits.c: Check the return value of nice() and
1617
set_filesize_limit(), and report errors to syslog.
1619
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1621
* libmisc/ulimit.c, lib/prototypes.h: Return failures of
1622
set_filesize_limit(). Change the prototype to return an int
1625
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1627
* libmisc/failure.c: Try to close the open file if a failure
1628
occured during lseek(), read() or write().
1630
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1632
* libmisc/log.c: Check return values. If lseek() failed, avoid
1633
reading or writing at an unspecified location. Log to syslog in
1635
* libmisc/log.c: Use the right casts.
1637
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1639
* libmisc/find_new_ids.c, libmisc/find_new_gid.c,
1640
libmisc/find_new_uid.c, libmisc/Makefile.am, lib/prototypes.h:
1641
Split find_new_ids.c into find_new_gid.c and find_new_uid.c to
1642
ease the description of login.defs variables in the different
1645
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1647
* libmisc/failure.c: Ignore the return value of strftime() and
1649
* libmisc/failure.c: Fix syslog call. The UID is not available.
1650
User the username specified in the utmp/utmpx entry.
1652
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1654
* lib/defines.h: Avoid implicit conversion of pointers to
1656
* lib/defines.h: Ignore return values of setlocale() except the
1658
* lib/defines.h: Fix a splint observer warning by using an
1659
intermediate variable (old_locale).
1661
2008-06-15 Nicolas François <nicolas.francois@centraliens.net>
1663
* libmisc/failure.c: Check return values. If lseek() failed, avoid
1664
reading or writing at an unspecified location. Log to syslog in
1665
case of failure when reading a faillog entry or writing in
1667
* libmisc/failure.c: Check if the file exist before opening it.
1668
* libmisc/failure.c: Log failures of open() and close() when
1671
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
1673
* lib/prototypes.h: Add the getrange() prototype.
1674
* lib/prototypes.h: Fix the valid_field() prototype (does not
1676
* lib/prototypes.h: Fix the valid() prototype (it does return a
1679
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
1681
* lib/getdef.c: Fix the getdef_ulong() prototype.
1682
* lib/getdef.h: Fix the getdef_ulong() prototype.
1684
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
1686
* src/lastlog.c: Use getrange to parse the range of users.
1687
* src/lastlog.c: umin and umax do not need to be signed long. Use
1688
an unsigned long which might be needed to parse a GID or UID. Add
1689
the has_umin and has_umax to replace the -1 values.
1690
* src/lastlog.c: Cast dates to time_t.
1691
* src/lastlog.c: Prefix lastlog errors with "lastlog: ".
1693
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
1695
* libmisc/getlong.c: Reset errno before calling strtol().
1696
Otherwise, errno could be already set to ERANGE.
1698
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
1700
* libmisc/Makefile.am, libmisc/getrange.c: Added function to parse
1701
a range (useful for lastlog).
1703
2008-06-14 Nicolas François <nicolas.francois@centraliens.net>
1705
* src/chsh.c: <signal.h> is not needed.
1707
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1709
* lib/prototypes.h: Define AUDIT_NO_ID to (unsigned int) -1. This
1710
value should be used when the ID should not be considered.
1711
* lib/prototypes.h: Fix the prototype of do_rlogin() according to
1714
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1716
* lib/shadow.c: Use SHADOW_SP_FLAG_UNSET for the initial
1717
value of spwd.sp_flag.
1718
* lib/shadow.c: Add brackets.
1719
* lib/shadow.c: Avoid implicit conversion of pointers to
1721
* lib/shadow.c: The size argument of fgets is an int, not a
1724
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1726
* lib/commonio.c: len should be typed ssize_t as it is the return
1727
of read(), and is compared to 0. Cast to size_t when necessary.
1729
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1731
* libmisc/find_new_ids.c: Use getdef_ulong to retrieve UIDs/GIDs
1732
from login.defs. Type constants to long integers.
1734
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1736
* lib/gshadow.c: Use a bool when possible instead of int integers.
1737
* lib/gshadow.c: Remove __setsgNIS() -never used).
1738
* lib/gshadow.c: Avoid multi-statements lines.
1739
* lib/gshadow.c: Avoid assignments in comparisons.
1740
* lib/gshadow.c: ptr[nelem] is a string. Initialize it to NULL
1742
* lib/gshadow.c: Add brackets and parenthesis.
1743
* lib/gshadow.c: The size argument of strncpy is a size_t and the
1744
size argument of fgets is an int.
1746
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1748
* lib/groupio.c: Add brackets.
1749
* lib/groupio.c: Make sure malloc receives a size_t.
1750
* lib/groupio.c: Avoid multi-statements lines.
1752
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1754
* lib/sgetspent.c: Use SHADOW_SP_FLAG_UNSET for the initial
1755
value of spwd.sp_flag.
1757
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1759
* lib/getdef.h, lib/getdef.c: Add getdef_ulong().
1760
* lib/getdef.c: Added TODOs because of lack of error checking.
1761
* lib/getdef.c: The size argument of fgets is an int, not a
1763
* lib/getdef.c: Avoid multi-statements lines.
1765
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1767
* src/id.c: Make sure malloc receives a size_t.
1768
* src/id.c: Use a %lu format and cast group and user IDs to
1769
unsigned long integers.
1771
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1773
* src/sulogin.c: Ignore the return value of signal().
1775
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1777
* src/groups.c: sys_ngroups is only used when HAVE_GETGROUPS is
1780
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1782
* src/faillog.c: Ignore return value of time() when use with a
1784
* src/faillog.c: Use a %lu format and cast number of days to
1785
unsigned long integers.
1786
* src/faillog.c: Cast dates to time_t.
1788
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1790
* src/login.c: Ignore the return value of signal().
1791
* src/login.c: Use a %lu format and cast group and user IDs to
1792
unsigned long integers.
1793
* src/login.c: Ignore return value of setlocale(),
1794
bindtextdomain(), and textdomain().
1796
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1798
* src/chage.c: Add the arguments' names in the functions
1800
* src/chage.c: The ID argument of audit_logger is an unsigned
1801
int. Use AUDIT_NO_ID instead of -1.
1802
* src/chage.c: print_date() received a time_t.
1803
* src/chage.c: Use SHADOW_SP_FLAG_UNSET for the initial
1804
value of spwent.sp_flag.
1806
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1808
* src/groupadd.c: The ID argument of audit_logger is an unsigned
1809
int. Use AUDIT_NO_ID instead of -1.
1810
* src/groupadd.c: Cast the parsed GID/UID to a gid_t/uid_t.
1812
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1814
* src/pwck.c: Use a %lu format and cast group and user IDs to
1815
unsigned long integers.
1816
* src/pwck.c: Cast number of days to a long integer.
1817
* src/pwck.c: Use the SCALE macro instead of (24L * 3600L)
1818
for the values to be set in /etc/shadow.
1819
* src/pwck.c: Use SHADOW_SP_FLAG_UNSET for the initial
1820
value of spent.sp_flag.
1822
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1824
* src/passwd.c: Ignore return value of time() when use with a
1826
* src/passwd.c: Cast number of days to a long integer.
1828
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1830
* src/groupmod.c: The ID argument of audit_logger is an unsigned
1831
int. Use AUDIT_NO_ID instead of -1.
1832
* src/groupmod.c: Use a %lu format and cast group and user IDs to
1833
unsigned long integers.
1834
* src/groupmod.c: Cast the parsed GID/UID to a gid_t/uid_t.
1836
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1838
* src/useradd.c: The ID argument of audit_logger is an unsigned
1839
int. Use AUDIT_NO_ID instead of -1.
1840
* src/useradd.c: Cast the parsed GID/UID to a gid_t/uid_t.
1841
* src/useradd.c: The size argument of fgets is an int, not a
1843
* src/useradd.c: Cast number of days to a long integer.
1844
* src/useradd.c: Use SHADOW_SP_FLAG_UNSET for the initial
1845
value of spent.sp_flag.
1846
* src/useradd.c: Use a %lu format and cast group and user IDs to
1847
unsigned long integers.
1849
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1851
* src/su.c: fork() and waitpid() return a pid_t, not an int.
1852
* src/su.c: Add brackets and parenthesis.
1853
* src/su.c: Ignore the return value of signal().
1855
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1857
* src/groupdel.c: The ID argument of audit_logger is an unsigned
1858
int. Use AUDIT_NO_ID instead of -1.
1860
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1862
* src/expiry.c: Ignore the return value of signal().
1864
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1866
* src/newusers.c: Fix the check for GID/UID validity.
1867
* src/newusers.c: Comment why we use both getgrgid() and
1869
* src/newusers.c: Cast the parsed GID/UID to a gid_t/uid_t.
1870
* src/newusers.c: Cast the number of days to a long integer.
1871
* src/newusers.c: Use SHADOW_SP_FLAG_UNSET for the initial
1872
value of spent.sp_flag.
1873
* src/newusers.c: The size argument of fgets is an int, not a
1876
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1878
* src/usermod.c: Cast dates to time_t, and number of days to a
1880
* src/usermod.c: Cast UIDs and GIDs to uid_t and gid_t after
1881
checking the ranges.
1882
* src/usermod.c: The ID argument of audit_logger is an unsigned
1884
* src/usermod.c: read() returns a ssize_t.
1885
* src/usermod.c: Cast the return value of malloc and make sure it
1888
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1890
* src/logoutd.c: Ignore return value of time() when use with a
1893
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1895
* src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial
1896
value of sp.sp_flag.
1897
* src/pwconv.c: Cast number of days to a long integer.
1899
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1901
* src/gpasswd.c: The ID argument of audit_logger is an unsigned
1903
* src/gpasswd.c: Ignore the return value of signal(). The signal
1904
handlers are only changed for the last steps of gpasswd, and there
1905
is no need to restore them.
1907
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1909
* src/userdel.c: The ID argument of audit_logger is an unsigned
1911
* src/userdel.c: fork() and wait() return a pid_t, not an int.
1913
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1915
* src/newgrp.c: Use a %lu format and cast group and user IDs to
1916
unsigned long integers.
1917
* src/newgrp.c: The ID argument of audit_logger is an unsigned
1919
* src/newgrp.c: Ignore the return value of signal() (the signal
1920
handlers are assumed to be the default one and are restored
1922
* src/newgrp.c: Do not checl if a pid_t is < 0, check if equal
1925
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1927
* libmisc/isexpired.c: Cast number of days to a long integer.
1928
* libmisc/isexpired.c: Add brackets and parenthesis.
1930
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1932
* libmisc/copydir.c: Do not specify a size of arrays in the
1934
* libmisc/copydir.c: Use a size_t for the length of strings.
1935
* libmisc/copydir.c: Cast the return value of malloc().
1936
* libmisc/copydir.c: The size argument of write() is a size_t.
1938
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1940
* libmisc/pwd2spwd.c: Cast number of days to a long integer.
1941
* libmisc/pwd2spwd.c: Use SHADOW_SP_FLAG_UNSET for the initial
1942
value of sp.sp_flag.
1944
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1946
* lib/defines.h: Include <config.h> since it uses the macro that
1947
might be defined in this header file.
1948
* lib/defines.h: Prefer checking if HAVE_LOCALE_H or ENABLE_NLS
1949
are defined (rather than set to non 0).
1950
* lib/defines.h: The dummy implementations of bindtextdomain() and
1951
textdomain() should return a pointer. Return NULL instead of
1953
* lib/defines.h: Define SHADOW_SP_FLAG_UNSET, to be used for the
1954
initialization of sp_flag field of the shadow structures.
1955
* lib/defines.h: Define LC_ALL, needed even if HAVE_LOCALE_H is
1958
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1960
* libmisc/sulog.c: Ignore the return value of umask() when the
1962
* libmisc/sulog.c: Add brackets.
1963
* libmisc/sulog.c: Ignore return value of time() when use with a
1966
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1968
* libmisc/log.c: Avoid assignments in comparisons.
1969
* libmisc/log.c: Add brackets and parenthesis.
1970
* libmisc/log.c: read() returns a ssize_t (note size_t).
1971
* libmisc/log.c: Avoid implicit conversion of pointers to
1973
* libmisc/log.c: Ignore return value of time() when use with a
1976
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1978
* libmisc/strtoday.c: Avoid implicit conversion of pointers to
1980
* libmisc/strtoday.c: Add brackets and parenthesis.
1982
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1984
* libmisc/salt.c: Use a size_t for the size of strings instead of
1986
* libmisc/salt.c: Add brackets and parenthesis.
1987
* libmisc/salt.c: Avoid assignments in comparisons.
1989
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
1991
* libmisc/age.c: fork() and wait() return a pid_t, not an int.
1992
* libmisc/age.c: Avoid implicit conversion of pointers to
1994
* libmisc/age.c: Avoid assignments in comparisons.
1995
* libmisc/age.c: Ignore the return value of printf(), puts(),
1996
fputs() and fflush().
1997
* libmisc/age.c: Add brackets and parenthesis.
1998
* libmisc/age.c: Cast the return value of time() to long and
1999
converted to a date.
2001
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2003
* libmisc/rlogin.c: The size argument of read() is a size_t.
2004
Propagate this time to the callers (the get_remote_string() and
2005
do_rlogin() functions).
2006
* libmisc/rlogin.c: Add brackets and parenthesis.
2007
* libmisc/rlogin.c: Avoid multi-statements lines.
2008
* libmisc/rlogin.c: Avoid assignments in comparisons.
2009
* libmisc/rlogin.c: Avoid implicit conversion of pointers to
2012
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2014
* libmisc/failure.c: Avoid assignments in comparisons.
2015
* libmisc/failure.c: read() returns a ssize_t.
2016
* libmisc/failure.c: Add brackets and parenthesis.
2017
* libmisc/failure.c: Ignore return value of time() when use with a
2020
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2022
* libmisc/chowntty.c: Avoid assignments in comparisons.
2023
* libmisc/chowntty.c: Avoid implicit conversion of pointers to
2025
* libmisc/chowntty.c: Add brackets and parenthesis.
2027
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2029
* libmisc/audit_help.c: Add brackets.
2031
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2033
* libmisc/addgrps.c: Avoid implicit conversion of pointers to
2035
* libmisc/addgrps.c: Add brackets.
2037
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2039
* libmisc/utmp.c: Avoid implicit conversion of pointers to
2042
2008-06-13 Nicolas François <nicolas.francois@centraliens.net>
2044
* libmisc/console.c, libmisc/hushed.c, libmisc/yesno.c,
2045
libmisc/loginprompt.c, libmisc/ttytype.c, libmisc/tz.c,
2046
src/login_nopam.c, src/chpasswd.c, src/chgpasswd.c, lib/port.c:
2047
The size argument of fgets is an int, not a size_t.
2048
* libmisc/loginprompt.c: Ignore the return value from signal()
2049
when the signal handlers are restored.
2050
* src/chpasswd.c: Cast the return value of time() to a long
2052
* src/chpasswd.c: Use the SCALE macro instead of (24L * 3600L)
2053
for the values to be set in /etc/shadow.
2055
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2057
* src/pwck.c: Use a bool when possible instead of int integers.
2058
* src/pwck.c: Avoid implicit conversion of integers to booleans.
2060
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2062
* src/su.c: Use a bool when possible instead of int integers.
2063
* src/su.c: Add brackets and parenthesis.
2064
* src/su.c: Avoid implicit conversion of pointers / integers
2065
/ chars to booleans.
2066
* src/su.c: Ignore the return value of pam_end() before
2068
* src/su.c: Avoid assignments in comparisons.
2069
* src/su.c: Avoid multi-statements lines.
2071
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2073
* lib/prototypes.h, libmisc/valid.c: Change the prototype of
2074
valid() to return a bool.
2075
* libmisc/valid.c: Add parenthesis.
2077
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2079
* lib/commonio.c: Add brackets and parenthesis.
2080
* lib/commonio.c: Check the result of fgets().
2081
* lib/commonio.c: Avoid implicit conversion of pointers to
2084
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2086
* lib/prototypes.h: Fix the prototypes to match earlier changes.
2088
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2090
* lib/nscd.c: Include defines.h.
2091
* lib/nscd.c: Always warn when the nscd cache cannot be flushed.
2092
* lib/nscd.c: Avoid assignments in comparisons.
2093
* lib/nscd.c: Ignore the return value of fputs() when printing
2096
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2098
* lib/port.c: Add brackets and parenthesis.
2099
* lib/port.c: Change isttytime() prototype to return a bool.
2100
* lib/port.c: Ignore the return value of fclose () (file open
2102
* lib/port.c: Avoid multi-statements lines.
2104
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2106
* src/id.c: Ignore the return value of fputs(), puts(), putchar(),
2108
* src/id.c: Ignore return value of setlocale(),
2109
bindtextdomain(), and textdomain().
2110
* src/id.c: Add brackets and parenthesis.
2111
* src/id.c: Avoid implicit conversion of pointers / integers
2114
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2116
* src/chsh.c: Use a bool when possible instead of int integers.
2117
* src/chsh.c: restricted_shell() renamed is_restricted_shell().
2118
check_shell() renamed shell_is_listed().
2119
* src/chsh.c: Ignore return value of setlocale(),
2120
bindtextdomain(), and textdomain().
2121
* src/chsh.c: Avoid implicit conversion of pointers / integers
2123
* src/chsh.c: Ignore the return value of pam_end() before
2126
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2128
* src/grpunconv.c: Use a bool when possible instead of int
2130
* src/grpunconv.c: Add brackets and parenthesis.
2131
* src/grpunconv.c: Ignore return value of setlocale(),
2132
bindtextdomain(), and textdomain().
2133
* src/grpunconv.c: Avoid implicit conversion of pointers / integers
2136
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2138
* src/sulogin.c: Ignore return value of setlocale(),
2139
bindtextdomain(), and textdomain().
2140
* src/sulogin.c: Avoid implicit conversion of pointers / integers
2141
/ chars to booleans.
2142
* src/sulogin.c: Avoid assignments in comparisons.
2143
* src/sulogin.c: Ignore the return value of alarm().
2145
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2147
* src/groups.c: Use a bool when possible instead of int integers.
2148
* src/groups.c: Add brackets and parenthesis.
2149
* src/groups.c: Avoid implicit conversion of pointers / integers
2151
* src/groups.c: Avoid assignments in comparisons.
2152
* src/groups.c: Ignore the return value of putchar(), printf()
2153
* src/groups.c: Ignore return value of setlocale(),
2154
bindtextdomain(), and textdomain().
2156
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2158
* src/grpconv.c: Use a bool when possible instead of int integers.
2159
* src/grpconv.c: Add brackets and parenthesis.
2160
* src/grpconv.c: Ignore return value of setlocale(),
2161
bindtextdomain(), and textdomain().
2162
* src/grpconv.c: Avoid implicit conversion of pointers / integers
2165
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2167
* src/faillog.c: Use a bool when possible instead of int integers.
2168
* src/faillog.c: Avoid implicit conversion of pointers / integers
2169
/ chars to booleans.
2170
* src/faillog.c: Ignore return value of setlocale(),
2171
bindtextdomain(), and textdomain().
2172
* src/faillog.c: Add brackets and parenthesis.
2174
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2176
* src/login.c: Avoid multi-statements lines.
2177
* src/login.c: Ignore the return value of pam_end() before
2179
* src/login.c: Use a bool when possible instead of int integers.
2180
* src/login.c: Add brackets and parenthesis.
2181
* src/login.c: Ignore the return values of fflush(), putchar(), puts().
2182
* src/login.c: Ignore the return value of fclose() for read-only
2184
* src/login.c: Avoid assignments in comparisons.
2185
* src/login.c: Ignore return value of setlocale(),
2186
bindtextdomain(), and textdomain().
2187
* src/login.c: Avoid implicit conversion of pointers / integers
2188
/ chars to booleans.
2190
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2192
* src/chage.c: Use a bool when possible instead of int integers.
2193
* src/chage.c: Ignore return value of setlocale(),
2194
bindtextdomain(), and textdomain().
2196
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2198
* src/groupadd.c: Use a bool when possible instead of int
2200
* src/groupadd.c: Add brackets and parenthesis.
2201
* src/groupadd.c: Avoid implicit conversion of pointers / integers
2202
/ chars to booleans.
2203
* src/groupadd.c: Ignore return value of setlocale(),
2204
bindtextdomain(), and textdomain().
2205
* src/groupadd.c: Ignore the return value of pam_end() before
2208
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2210
* src/pwck.c: Use a bool when possible instead of int integers.
2211
* src/pwck.c: Ignore return value of setlocale(),
2212
bindtextdomain(), and textdomain().
2214
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2216
* src/passwd.c: Use a bool when possible instead of int integers.
2217
* src/passwd.c: Avoid assignments in comparisons.
2218
* src/passwd.c: Add brackets and parenthesis.
2219
* src/passwd.c: Avoid implicit conversion of pointers / integers /
2221
* src/passwd.c: Move the "context_t c" declaration at the
2222
beginning check_selinux_access.
2223
* src/passwd.c: Ignore return value of setlocale(),
2224
bindtextdomain(), and textdomain().
2226
2008-06-10 Nicolas François <nicolas.francois@centraliens.net>
2228
* src/groupmod.c: Use a bool when possible instead of int
2230
* src/groupmod.c: Avoid assignments in comparisons.
2231
* src/groupmod.c: Add brackets and parenthesis.
2232
* src/groupmod.c: Avoid implicit conversion of pointers / integers
2233
/ chars to booleans.
2234
* src/groupmod.c: Use a %lu format to print GIDs, and cast the GID
2235
to (unsigned long int).
2236
* src/groupmod.c: Ignore return value of setlocale(),
2237
bindtextdomain(), and textdomain().
2238
* src/groupmod.c: Ignore the return value of pam_end() before
2241
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2243
* src/su.c: Ignore return value of setlocale(),
2244
bindtextdomain(), and textdomain().
2246
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2248
* src/useradd.c: Use a bool when possible instead of int integers.
2249
* src/useradd.c: Avoid implicit conversion of pointers / integers
2250
/ chars to booleans.
2251
* src/useradd.c: Add brackets and parenthesis.
2252
* src/useradd.c: Avoid assignments in comparisons.
2253
* src/useradd.c: Ignore the return value of fclose() for read-only
2255
* src/useradd.c: Ignore the return value of fflush() before
2257
* src/useradd.c: Avoid multi-statements lines.
2258
* src/useradd.c: Ignore return value of setlocale(),
2259
bindtextdomain(), and textdomain().
2260
* src/useradd.c: Ignore the return value of pam_end() before
2263
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2265
* src/vipw.c: Use a bool when possible instead of int integers.
2266
* src/vipw.c: Ignore the return value of umask(), when the mask is
2267
set again to the old value.
2268
* src/vipw.c: Avoid implicit conversion of pointers / integers to
2270
* src/vipw.c: Add brackets and parenthesis.
2271
* src/vipw.c: Avoid assignments in comparisons.
2272
* src/vipw.c: Ignore return value of setlocale(),
2273
bindtextdomain(), and textdomain().
2274
* src/vipw.c: Add missing termination of the longopts parameter
2277
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2279
* src/chgpasswd.c: Use a bool when possible instead of int
2281
* src/chgpasswd.c: Ignore return value of setlocale(),
2282
bindtextdomain(), and textdomain().
2283
* src/chgpasswd.c: Avoid implicit conversion of integers to
2286
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2288
* src/groupdel.c: Use a bool when possible instead of int
2290
* src/groupdel.c: Avoid implicit conversion of pointers / integers to
2292
* src/groupdel.c: Avoid assignments in comparisons.
2293
* src/groupdel.c: Ignore the return value of pam_end() before
2295
* src/groupdel.c: Ignore return value of setlocale(),
2296
bindtextdomain(), and textdomain().
2298
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2300
* src/expiry.c: Ignore return value of setlocale(),
2301
bindtextdomain(), and textdomain().
2302
* src/expiry.c: Add brackets and parenthesis.
2303
* src/expiry.c: Avoid assignments in comparisons.
2304
* src/expiry.c: Avoid implicit conversion of pointers to booleans.
2306
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2308
* src/pwunconv.c: Use a bool when possible instead of int
2310
* src/pwunconv.c: Add brackets and parenthesis.
2311
* src/pwunconv.c: Ignore return value of setlocale(),
2312
bindtextdomain(), and textdomain().
2313
* src/pwunconv.c: Avoid implicit conversion of pointers / integers
2314
/ chars to booleans.
2315
* src/pwunconv.c: Avoid assignments in comparisons.
2317
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2319
* src/usermod.c: Use a bool when possible instead of int integers.
2320
* src/usermod.c: Add brackets and parenthesis.
2321
* src/usermod.c: Avoid implicit conversion of pointers / integers
2322
/ chars to booleans.
2323
* src/usermod.c: Avoid assignments in comparisons.
2324
* src/usermod.c: Ignore return value of setlocale(),
2325
bindtextdomain(), and textdomain().
2326
* src/usermod.c: Ignore the return value of pam_end() before
2329
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2331
* src/groupmems.c: Move the declaration of option_index and
2332
long_options before the blocks of code.
2333
* src/groupmems.c: Ignore return value of setlocale(),
2334
bindtextdomain(), and textdomain().
2335
* src/groupmems.c: Ignore the return value of pam_end() before
2338
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2340
* src/chfn.c: Use a bool when possible instead of int integers.
2341
* src/chfn.c: Avoid implicit conversion of integers / chars to
2343
* src/chfn.c: Ignore return value of setlocale(),
2344
bindtextdomain(), and textdomain().
2346
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2348
* src/logoutd.c: Use a bool when possible instead of int integers.
2349
* src/logoutd.c: Avoid implicit conversion of pointers / integers
2350
/ chars to booleans.
2351
* src/logoutd.c: Ignore return value of setlocale(),
2352
bindtextdomain(), and textdomain().
2353
* src/logoutd.c: Add brackets and parenthesis.
2355
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2357
* src/chpasswd.c: Use a bool when possible instead of int
2359
* src/chpasswd.c: Avoid implicit conversion of pointers / integers
2360
/ chars to booleans.
2361
* src/chpasswd.c: Ignore return value of setlocale(),
2362
bindtextdomain(), and textdomain().
2364
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2366
* src/pwconv.c: Use a bool when possible instead of int integers.
2367
* src/pwconv.c: Add brackets and parenthesis.
2368
* src/pwconv.c: Ignore return value of setlocale(),
2369
bindtextdomain(), and textdomain().
2370
* src/pwconv.c: Avoid implicit conversion of pointers / integers /
2373
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2375
* NEWS, src/newusers.c: Implement the -r, --system option.
2376
* src/newusers.c: Use a bool when possible instead of int
2378
* src/newusers.c: Avoid implicit conversion of pointers / integers
2379
/ chars to booleans.
2380
* src/newusers.c: Ignore the return value of pam_end() before
2382
* src/newusers.c: Ignore return value of setlocale(),
2383
bindtextdomain(), and textdomain().
2384
* src/newusers.c: Avoid multi-statements lines.
2385
* src/newusers.c: Add brackets and parenthesis.
2387
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2389
* src/gpasswd.c: Use a bool when possible instead of int integers.
2390
* src/gpasswd.c: Avoid implicit conversion of pointers / integers
2391
/ chars to booleans.
2392
* src/gpasswd.c: Ignore the return value of putchar() and fflush()
2394
* src/gpasswd.c: check_list() renamed is_valid_user_list(), and
2396
* src/gpasswd.c: Ignore return value of setlocale(),
2397
bindtextdomain(), and textdomain().
2399
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2401
* src/grpck.c: Use a bool when possible instead of int integers.
2402
* src/grpck.c: Ignore return value of setlocale(),
2403
bindtextdomain(), and textdomain().
2405
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2407
* src/lastlog.c: Use a bool when possible instead of int integers.
2408
* src/lastlog.c: Avoid implicit conversion of pointers / integers
2409
/ chars to booleans.
2410
* src/lastlog.c: Add brackets and parenthesis.
2411
* src/lastlog.c: Ignore return value of setlocale(),
2412
bindtextdomain(), and textdomain().
2414
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2416
* src/userdel.c: Use a bool for the is_shadow_pwd, is_shadow_grp,
2417
deleted_user_group, was_member, was_admin, and the
2419
* src/userdel.c: Change path_prefix() prototype to return a bool.
2420
* src/userdel.c: Ignore return value of setlocale(),
2421
bindtextdomain(), and textdomain().
2422
* src/userdel.c: Ignore the return value from pam_end() since we
2423
are exiting anyway just afterwards.
2424
* src/userdel.c: Avoid implicit conversion of pointers /
2425
integers / chars to booleans.
2426
* src/userdel.c: Add brackets and parenthesis.
2427
* src/userdel.c: Avoid assignments in comparisons.
2428
* src/userdel.c: Do not ignore the return value of the *_unlock()
2431
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2433
* src/login_nopam.c: Do not use the YES and NO macros. Use the
2434
booleans true and false instead. Change the prototypes of
2435
list_match(), user_match(), from_match(), and string_match()
2436
accordingly. Also use booleans internally.
2437
* src/login_nopam.c: Add brackets and parenthesis.
2438
* src/login_nopam.c: Avoid implicit conversion of pointers /
2439
integers / chars to booleans.
2440
* src/login_nopam.c: Avoid assignments in comparisons.
2442
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2444
* src/newgrp.c: Use a bool for is_newgrp, notfound, needspasswd,
2445
initflag, and cflag.
2446
* src/newgrp.c: Add brackets and parenthesis.
2447
* src/newgrp.c: Avoid implicit conversion of pointers / integers /
2449
* src/newgrp.c: Avoid multi-statements lines.
2450
* src/newgrp.c: Ignore return value of setlocale(),
2451
bindtextdomain(), and textdomain().
2452
* src/newgrp.c: Avoid assignments in comparisons.
2454
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2456
* libmisc/list.c: Change is_on_list() prototype to return a bool.
2458
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2460
* libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid()
2461
prototypes to use a bool for their first argument (sys_user /
2464
2008-06-09 Nicolas François <nicolas.francois@centraliens.net>
2466
* libmisc/console.c: Change is_listed() prototype to return a bool.
2467
The default parameter should also be a bool.
2468
* libmisc/console.c: Add brackets and parenthesis.
2469
* libmisc/console.c: Avoid assignments in comparisons.
2470
* libmisc/console.c: Change console() prototype to return a bool.
2472
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2474
* lib/sgetspent.c: Add brackets and parenthesis.
2475
* lib/sgetspent.c: Avoid assignments in comparisons.
2476
* lib/sgetspent.c: Avoid implicit conversion of pointers / chars
2478
* lib/sgetspent.c: Avoid multi-statements lines.
2480
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2482
* lib/sgetpwent.c: Avoid implicit conversion of pointers / chars to
2484
* lib/sgetpwent.c: Add brackets and parenthesis.
2485
* lib/sgetpwent.c: Return NULL instead of 0.
2486
* lib/sgetpwent.c: Do not check twice if fields[2] and fields[3]
2488
* lib/sgetpwent.c: Avoid assignments in comparisons.
2490
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2492
* libmisc/getdate.y: abbrev is a bool.
2493
* libmisc/getdate.y: Avoid implicit conversion of pointers / chars /
2494
integers to booleans.
2496
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2498
* lib/prototypes.h: Fix prototypes according to earlier changes
2499
(usage of the bool type).
2500
* lib/prototypes.h: Add the arguments' name to the prototypes.
2502
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2504
* lib/groupio.h: Add protection against multiple inclusions.
2506
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2508
* lib/pwio.h: Add protection against multiple inclusions.
2509
* lib/pwio.c: The changed, isopen, locked, and readonly fields
2510
of the db are booleans.
2512
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2514
* lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool.
2515
* lib/shadowio.h: Add protection against multiple inclusions.
2516
* lib/shadowio.c: The changed, isopen, locked, and readonly fields
2517
of the db are booleans.
2519
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2521
* lib/sgroupio.c: Avoid assignments in comparisons.
2522
* lib/sgroupio.c: Add brackets.
2523
* lib/sgroupio.c: Avoid implicit conversion of pointers / integers
2525
* lib/sgroupio.c: The changed, isopen, locked, and readonly fields
2526
of the db are booleans.
2527
* lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool.
2528
* lib/sgroupio.h: Add protection against multiple inclusions.
2530
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2532
* lib/gshadow.c: nis_used and nis_bound are booleans.
2533
* lib/gshadow.c: Avoid implicit conversion of pointers / integers
2535
* lib/gshadow.c: Avoid assignments in comparisons.
2536
* lib/gshadow.c: Add brackets.
2538
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2540
* lib/groupio.c: The changed, isopen, locked, and readonly fields
2541
of the db are booleans.
2542
* lib/groupio.h: Add protection against multiple inclusion.
2544
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2546
* lib/sgetgrent.c: Avoid implicit conversion of pointers / chars
2548
* lib/sgetgrent.c: Avoid assignments in comparisons.
2549
* lib/sgetgrent.c: Add brackets.
2551
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2553
* lib/encrypt.c: Avoid implicit conversion of pointers to
2555
* lib/encrypt.c: Add parenthesis.
2557
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2559
* lib/port.c: Avoid implicit conversion of pointers / integers /
2561
* lib/port.c: Avoid multiple statement on the same line.
2562
* lib/port.c: Add brackets and parenthesis.
2563
* lib/port.c: Avoid assignments in comparisons.
2564
* lib/port.c: Fix typo comparision -> comparison (in comment).
2566
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2568
* lib/fputsx.c: Add brackets.
2569
* lib/fputsx.c: Avoid assignments in comparisons.
2570
* lib/fputsx.c: Avoid implicit conversion of pointers / integers /
2573
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2575
* lib/commonio.h: commonio_entry.changed, commonio_db.changed,
2576
commonio_db.isopen, commonio_db.locked, and commonio_db.readonly
2578
* lib/commonio.h: Include defines.h to get the definition of bool.
2579
* lib/commonio.h: commonio_present returns a bool
2580
* lib/commonio.c: Implement above changes.
2581
* lib/commonio.c: add argument names in prototypes.
2582
* lib/commonio.c: name_is_nis returns a bool.
2583
* lib/commonio.c: nscd_need_reload is a bool.
2584
* lib/commonio.c: Improve types (use size_t / pid_t when needed
2586
* lib/commonio.c: Avoid assignments in comparisons.
2587
* lib/commonio.c: Add brackets and parenthesis.
2588
* lib/commonio.c: Avoid implicit conversion of pointers / integers
2590
* lib/commonio.c: The return values of utime is not checked on
2593
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2595
* libmisc/isexpired.c: ARGSUSED is no more needed (shadow is
2597
* libmisc/isexpired.c: Avoid implicit conversion of pointers to
2599
* libmisc/isexpired.c: Add brackets and parenthesis.
2601
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2603
* libmisc/sulog.c (sulog): The success argument is a bool.
2604
* libmisc/sulog.c: The return values of fflush is not checked on
2606
* libmisc/sulog.c: Indicate that some return values should be
2609
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2611
* libmisc/ttytype.c: Avoid implicit conversion of pointers /
2612
integers to booleans.
2613
* libmisc/ttytype.c: Avoid assignments in comparisons.
2614
* libmisc/ttytype.c: Add brackets and parenthesis.
2615
* libmisc/ttytype.c: The return values of fclose is not checked on
2618
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2620
* libmisc/mail.c: Avoid implicit conversion of pointers to
2622
* libmisc/mail.c: Avoid assignments in comparisons.
2624
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2626
* libmisc/loginprompt.c: Avoid implicit conversion of pointers /
2628
* libmisc/loginprompt.c: Add brackets.
2629
* libmisc/loginprompt.c: Avoid assignments in comparisons.
2630
* libmisc/loginprompt.c: The return values of fclose and fflush
2631
are not checked on purpose.
2633
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2635
* libmisc/setupenv.c: Avoid implicit conversion of chars to
2638
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2640
* libmisc/copydir.c: selinux_checked, selinux_enabled, and set_orig
2643
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2645
* libmisc/setugid.c (setup_uid_gid): The is_console argument is now
2647
* libmisc/setugid.c: Avoid implicit conversion of integers /
2648
pointers to booleans.
2649
* libmisc/setugid.c: Add brackets.
2651
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2653
* libmisc/pam_pass.c (do_pam_passwd): The silent and
2654
change_expired are no booleans instead of int.
2655
* libmisc/pam_pass.c: The return value of pam_end is not checked
2658
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2660
* libmisc/getlong.c: Avoid implicit conversion of pointers / chars
2662
* libmisc/getlong.c: Add brackets.
2664
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2666
* libmisc/valid.c: Avoid implicit conversion of pointers / chars
2668
* libmisc/valid.c: Add brackets.
2670
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2672
* libmisc/yesno.c: yes_or_no returns a bool instead of int.
2673
* libmisc/yesno.c: Avoid implicit conversion of pointers to
2675
* libmisc/yesno.c: The return value of fflush is not checked
2678
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2680
* libmisc/age.c: Avoid implicit conversion of integers to
2683
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2685
* libmisc/rlogin.c: Avoid assignments in comparisons.
2686
* libmisc/rlogin.c: Avoid implicit conversion of integers to
2688
* libmisc/rlogin.c: Add brackets.
2690
2008-05-26 Nicolas François <nicolas.francois@centraliens.net>
2692
* libmisc/failure.c (failcheck): The failed argument is a bool.
2693
* libmisc/failure.h: Likewise.
2694
* libmisc/failure.c (too_many_failures): too_many_failures returns
2696
* libmisc/failure.c: Add notes about unchecked return values.
2697
* libmisc/failure.c: Avoid assignments in comparisons.
2698
* libmisc/failure.c: Add brackets.
2700
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2702
* libmisc/myname.c: Avoid assignments in comparisons.
2703
* libmisc/myname.c: Avoid implicit conversion of pointers / chars
2705
* libmisc/myname.c: Add brackets.
2707
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2709
* libmisc/utmp.c (checkutmp): Change picky argument's type to
2711
* libmisc/utmp.c: Use bool when possible (found_utmpx,
2713
* libmisc/utmp.c: Add note about unchecked return values.
2715
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2717
* libmisc/addgrps.c: Change type of added to bool.
2718
* libmisc/addgrps.c: Avoid implicit conversion of pointers to
2721
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2723
* libmisc/hushed.c: hushed returns a bool instead of int.
2724
* libmisc/hushed.c: Avoid assignments in comparisons.
2725
* libmisc/hushed.c (hushed): Change type of found to bool.
2726
* libmisc/hushed.c: Add brackets.
2727
* libmisc/hushed.c: Always check if the user or the shell is in
2728
the file. Do not check the first character of the line first. This
2729
is simpler and match better with the HUSHLOGIN_FILE documentation.
2731
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2733
* lib/getdef.h, lib/getdef.c: getdef_bool returns a bool instead
2735
* lib/getdef.c: Change typo of def_loaded to bool.
2736
* lib/getdef.c: Add brackets.
2737
* lib/getdef.c: Avoid assignments in comparisons.
2739
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2741
* libmisc/chowntty.c: is_my_tty returns a bool.
2742
* libmisc/chowntty.c: Avoid implicit conversion of integers to
2744
* libmisc/chowntty.c: Add brackets.
2746
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2748
* libmisc/chowndir.c: Avoid assignment in comparisons, implicit
2749
comparison of integers to booleans.
2750
* libmisc/chowndir.c: The return value of closedir is not checked
2752
* libmisc/chowndir.c: Add brackets.
2754
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2756
* libmisc/chkname.h, libmisc/chkname.c: check_group_name (resp.
2757
check_user_name) renamed to is_valid_user_name (resp.
2758
is_valid_group_name). is_valid_user_name and is_valid_group_name
2760
* src/grpck.c, src/newusers.c, src/usermod.c, src/useradd.c,
2761
src/groupmod.c, src/pwck.c, src/groupadd.c: Use is_valid_user_name
2762
and is_valid_group_name, following above change.
2763
* libmisc/chkname.c: Avoid implicit conversion of chars to
2764
booleans. Add brackets and parenthesis.
2766
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2768
* libmisc/xmalloc.c: Avoid implicit conversion of integers /
2769
pointers to booleans.
2770
* libmisc/xgetXXbyYY.c: Likewise.
2772
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2774
* configure.in, lib/defines.h: Allow usage of booleans in the
2777
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2779
* configure.in: Allow --disable-man and --enable-man=no.
2781
2008-06-26 Nicolas François <nicolas.francois@centraliens.net>
2783
Prepare the 4.1.2.1 release
2784
* NEWS: set the release date.
2785
* man/po/*.po, po/*.po: Updated PO files.
2786
* configure.in: Set the version to 4.1.2.1.
2788
2008-06-26 Nicolas François <nicolas.francois@centraliens.net>
2790
* NEWS, src/login.c: Fix an "audit log injection" vulnerability in
2791
login. This is similar to CVE-2008-1926 (util-linux-ng's login).
2792
This vulnerability makes it easier for attackers to hide
2793
activities by modifying portions of log events, e.g. by appending
2794
an addr= statement to the login name.
2795
* lib/prototypes.h: Added definition of AUDIT_NO_ID.
2797
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2799
Prepare the 4.1.2 release
2800
* NEWS: set the release date.
2801
* man/po/*.po, po/*.po: Updated PO files.
2802
* configure.in: Set the version to 4.1.2.
2804
2008-05-25 Nicolas François <nicolas.francois@centraliens.net>
2806
* po/Makevars, man/po/Makefile.in.in: Run msgmerge with
2807
--previous. (This requires gettext >= 0.16)
2809
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
2811
* libmisc/copydir.c (remove_tree): As we always use remove_tree
2812
followed by rmdir to remove the directory itself, delete also the
2813
root directory in remove_tree.
2814
* src/userdel.c, src/usermod.c: Do not call rmdir after
2817
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
2819
* libmisc/copydir.c (remove_tree): Make sure unlink is successful
2820
when removing files.
2822
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
2824
* libmisc/pwdcheck.c: Simply passwd_check since it's never used
2825
when configured with PAM support.
2827
2008-05-24 Nicolas François <nicolas.francois@centraliens.net>
2829
Fix compiler warnings:
2830
* libmisc/audit_help.c: Include prototypes.h to get the prototype
2832
* libmisc/salt.c: Use booleans instead of negating integers.
2833
* src/passwd.c: Declare the check_selinux_access prototype and
2834
avoid name clashes (change_user -> changed_user; change_uid ->
2835
changed_uid; access -> requested_access)
2836
* libmisc/list.c: Avoid assignments in comparisons, assignments
2837
with post increments (x++), use of integers as booleans, and
2838
explicitly mark blocks with brackets.
2839
* libmisc/fields.c: Likewise.
2840
* libmisc/copydir.c: Likewise.
2841
* libmisc/fields.c: Add comments.
2842
* libmisc/copydir.c: Mark function whose return value is not
2845
2008-05-23 Nicolas François <nicolas.francois@centraliens.net>
2847
* libmisc/pam_pass.c: Use fputs rather than fprintf for constant
2850
2008-05-21 Nicolas François <nicolas.francois@centraliens.net>
2852
* man/login.1.xml: Indicate that login should be executed with
2853
"exec login" if called from a shell.
2855
2008-05-21 Nicolas François <nicolas.francois@centraliens.net>
2857
* man/passwd.1.xml: Remove the advices for the choice of a good
2858
password (they are debatable). Point to
2859
http://en.wikipedia.org/wiki/Password_strength instead.
2861
2008-05-20 Nicolas François <nicolas.francois@centraliens.net>
2863
* NEWS, libmisc/salt.c (SHA_salt_size): Seed the RNG, and fix a
2864
overflow. These caused the SHA salt size to always be 8 bytes,
2865
instead of being in the 8-16 range. Thanks to Peter Vrabec
2866
pvrabec@redhat.com for noticing.
2867
* NEWS, libmisc/salt.c (SHA_salt_rounds): Seed the RNG with
2868
seedRNG instead of srand, and fix the same overflow. This caused
2869
the number of rounds to always be the smallest one.
2871
2008-05-20 Nicolas François <nicolas.francois@centraliens.net>
2873
* man/newusers.8.xml man/groupmems.8.xml man/groupdel.8.xml
2874
man/useradd.8.xml man/groupadd.8.xml man/newgrp.1.xml man/sg.1.xml
2875
man/chgpasswd.8.xml man/groupmod.8.xml: Tag the section which
2876
require --enable-shadowgrp accordingly.
2878
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2880
* man/login.defs.5.xml: SHA_CRYPT_MAX_ROUNDS and
2881
SHA_CRYPT_MIN_ROUNDS can only exist if configured with
2884
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2886
* NEWS, man/useradd.8.xml: Document the -k, --skel option, and
2887
update the -m, --create-home documentation.
2889
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2891
* man/useradd.8.xml: Sort options.
2893
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2895
* lib/getdef.c: SHA_CRYPT_MAX_ROUNDS and SHA_CRYPT_MIN_ROUNDS can
2896
only exist if configured with --with-sha-crypt.
2897
* man/login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml: Likewise.
2899
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2901
* libmisc/salt.c: Document the section closed by #endif
2903
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2905
* src/useradd.c: Fix formatting.
2907
2008-05-19 Nicolas François <nicolas.francois@centraliens.net>
2909
* NEWS, man/useradd.8.xml: Document the -r, --system option.
2910
* NEWS, man/groupadd.8.xml: Document the -r, --system option.
2911
* NEWS, man/newusers.8.xml: Document the -r, --system option.
2912
* NEWS, man/newusers.8.xml: Document the -c, --crypt-method and
2913
-s, --sha-rounds options.
2915
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
2917
Import Debian patch 487_passwd_chauthtok_failed_message
2918
* libmisc/pam_pass.c: Be more verbose and indicate that the
2919
password was not changed when pam_chauthtok fails (in addition to
2920
the PAM error, which may not be comprehensible for the users).
2922
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
2924
Import Debian patch 434_login_stop_checking_args_after--
2925
* NEWS, src/login.c (check_flags): Stop checking the arguments
2926
after --. The later options will be sent to the shell, and do not
2929
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
2931
* src/vipw.c, src/su.c, src/newgrp.c: Harmonize the children's
2932
SIGSTOP handling. Raise the signal which stopped the child instead
2935
2008-05-18 Nicolas François <nicolas.francois@centraliens.net>
2937
Import Debian patch 406_vipw_resume_properly.
2938
Thanks to Dean Gaudet.
2939
* NEWS, src/vipw.c: Resume properly after ^Z.
2941
2008-04-27 Nicolas François <nicolas.francois@centraliens.net>
2943
* lib/getdef.c, lib/lockpw.c, lib/utent.c, lib/sgetgrent.c,
2944
lib/getdef.h, lib/pwauth.c, lib/sgetspent.c, lib/pwauth.h,
2945
lib/port.c, lib/encrypt.c, lib/groupio.c, lib/shadowmem.c,
2946
lib/port.h, lib/groupio.h, lib/groupmem.c, lib/exitcodes.h,
2947
lib/gshadow.c, lib/gshadow_.h, lib/sgroupio.c, lib/sgroupio.h,
2948
lib/shadowio.c, lib/pwio.c, lib/sgetpwent.c, lib/commonio.c,
2949
lib/faillog.h, lib/shadowio.h, lib/pwio.h, lib/pam_defs.h,
2950
lib/pwmem.c, lib/commonio.h, lib/shadow.c, lib/fputsx.c,
2951
lib/prototypes.h, libmisc/xmalloc.c, libmisc/limits.c,
2952
libmisc/entry.c, libmisc/console.c, libmisc/ulimit.c,
2953
libmisc/xgetXXbyYY.c, libmisc/chkname.c, libmisc/pwd2spwd.c,
2954
libmisc/xgetpwnam.c, libmisc/basename.c, libmisc/chkname.h,
2955
libmisc/chowndir.c, libmisc/audit_help.c, libmisc/chowntty.c,
2956
libmisc/hushed.c, libmisc/xgetpwuid.c, libmisc/getdate.h,
2957
libmisc/addgrps.c, libmisc/xgetgrgid.c, libmisc/utmp.c,
2958
libmisc/myname.c, libmisc/failure.c, libmisc/find_new_ids.c,
2959
libmisc/env.c, libmisc/rlogin.c, libmisc/age.c, libmisc/failure.h,
2960
libmisc/xgetgrnam.c, libmisc/yesno.c, libmisc/valid.c,
2961
libmisc/getlong.c, libmisc/obscure.c, libmisc/pam_pass.c,
2962
libmisc/motd.c, libmisc/salt.c, libmisc/setugid.c,
2963
libmisc/fields.c, libmisc/xgetspnam.c, libmisc/shell.c,
2964
libmisc/copydir.c, libmisc/setupenv.c, libmisc/strtoday.c,
2965
libmisc/loginprompt.c, libmisc/list.c, libmisc/pwd_init.c,
2966
libmisc/log.c, libmisc/mail.c, libmisc/ttytype.c,
2967
libmisc/pwdcheck.c, libmisc/sub.c, libmisc/sulog.c,
2968
libmisc/isexpired.c, libmisc/tz.c, src/newgrp.c, src/userdel.c,
2969
src/lastlog.c, src/grpck.c, src/gpasswd.c, src/newusers.c,
2970
src/pwconv.c, src/chpasswd.c, src/logoutd.c, src/chfn.c,
2971
src/groupmems.c, src/usermod.c, src/pwunconv.c, src/expiry.c,
2972
src/groupdel.c, src/chgpasswd.c, src/vipw.c, src/useradd.c,
2973
src/su.c, src/groupmod.c, src/passwd.c, src/pwck.c,
2974
src/groupadd.c, src/nologin.c, src/chage.c, src/login.c,
2975
src/suauth.c, src/faillog.c, src/grpconv.c, src/groups.c,
2976
src/sulogin.c, src/grpunconv.c, src/chsh.c, src/id.c: Make sure
2977
every source files are distributed with a copyright and license.
2978
Files with no license use the default 3-clauses BSD license. The
2979
copyright were mostly not recorded; they were updated according to
2980
the Changelog. "Julianne Frances Haugh and contributors" changed
2981
to "copyright holders and contributors".
2983
2008-04-27 Nicolas François <nicolas.francois@centraliens.net>
2985
* NEWS, libmisc/sulog.c: If the SULOG_FILE does not exist when an
2986
su session is logged, make sure the file is created with group
2987
root, instead of using the group of the caller.
2989
2008-04-27 Nicolas François <nicolas.francois@centraliens.net>
2991
* NEWS, libmisc/fields.c, src/chfn.c, man/chfn.1.xml: Allow
2992
non-US-ASCII characters in the GECOS fields ("name", "room
2993
number", and "other info" fields).
2995
2008-04-17 Nicolas François <nicolas.francois@centraliens.net>
2997
* NEWS, src/newgrp.c: Fix compilation failure when compiled with
2998
audit support. Thanks to Mike Frysinger for reporting it.
3000
2008-04-16 Nicolas François <nicolas.francois@centraliens.net>
3002
Ensure that getpwent() is used in setpwent(), getpwent(),
3003
endpwend() sequences (ditto for getgrent(), getspent(), and
3004
getsgent()). The only real (minor) issue was in login, which kept
3005
the passwd file open.
3006
* libmisc/entry.c: Remove unneeded setspent() and endspent() (only
3007
getspnam is called in the middle).
3008
* libmisc/find_new_ids.c: Make sure to close the password and
3009
group files with endpwent() and endgrent().
3010
* libmisc/pwdcheck.c: Remove unneeded endspent() (only getspnam()
3012
* src/lastlog.c, src/passwd.c, src/groupmod.c, src/faillog.c,
3013
src/groups.c: Make sure to close
3014
the password file with endpwent().
3015
* src/login.c: Remove unneeded setpwent() (only xgetpwnam is
3017
* src/login.c, src/newgrp.c: Fix typos in comments.
3019
2008-04-16 Nicolas François <nicolas.francois@centraliens.net>
3021
* NEWS, configure.in: Fix the detection of the audit, pam, and
3022
selinux. Fail if the feature is requested but the library (or
3023
header file) could not be found. If nothing is specified, enable
3024
the feature only if we can find the library (or header file).
3025
* configure.in: Document --with-selinux as "yes if found" rather
3026
than "autodetected" for consistency with other options.
3028
2008-04-04 Mark Rosenstand <mark@borkware.net>
3030
* NEWS, etc/pam.d/Makefile.am: Add chfn, chsh, and userdel to
3031
$(pamd_files). Remove the duplicate useradd. And sort
3034
2008-04-04 Nicolas François <nicolas.francois@centraliens.net>
3036
* NEWS: Prepare next release, 4.1.2.
1
3038
2008-04-02 Nicolas François <nicolas.francois@centraliens.net>
3
3040
* NEWS, configure.in: Prepare release 4.1.1