]> granicus.if.org Git - shadow/log
shadow
15 years agoFix typo.
nekral-guest [Wed, 22 Apr 2009 21:33:09 +0000 (21:33 +0000)]
Fix typo.

15 years ago * lib/defines.h: Added splint definitions to replace <locale.h>
nekral-guest [Wed, 22 Apr 2009 21:22:32 +0000 (21:22 +0000)]
* lib/defines.h: Added splint definitions to replace <locale.h>

15 years ago * libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,
nekral-guest [Wed, 22 Apr 2009 21:21:14 +0000 (21:21 +0000)]
* libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,
lib/groupio.h, lib/sgroupio.c, lib/sgroupio.h, lib/shadowio.c,
lib/pwio.c, lib/commonio.c, lib/shadowio.h, lib/pwio.h,
lib/commonio.h, lib/prototypes.h: Added splint annotations.

15 years ago * libmisc/utmp.c: Added splint annotations.
nekral-guest [Wed, 22 Apr 2009 21:07:33 +0000 (21:07 +0000)]
* libmisc/utmp.c: Added splint annotations.

15 years ago * libmisc/utmp.c: Only set ut_time and ut_tv if gettimeofday()
nekral-guest [Wed, 22 Apr 2009 21:06:13 +0000 (21:06 +0000)]
* libmisc/utmp.c: Only set ut_time and ut_tv if gettimeofday()
succeeds.

15 years ago * libmisc/utmp.c: Fix the check for empty host in prepare_utmp()
nekral-guest [Wed, 22 Apr 2009 21:04:16 +0000 (21:04 +0000)]
* libmisc/utmp.c: Fix the check for empty host in prepare_utmp()
and prepare_utmpx().

15 years ago * libmisc/utmp.c: The ut argument of prepare_utmp() might be NULL.
nekral-guest [Wed, 22 Apr 2009 21:02:46 +0000 (21:02 +0000)]
* libmisc/utmp.c: The ut argument of prepare_utmp() might be NULL.
ut_id needs to be forged in that case.

15 years ago * libmisc/utmp.c: Removed old documentation of setutmp().
nekral-guest [Wed, 22 Apr 2009 21:00:18 +0000 (21:00 +0000)]
* libmisc/utmp.c: Removed old documentation of setutmp().

15 years ago * libmisc/utmp.c: Use xmalloc() rather than malloc().
nekral-guest [Wed, 22 Apr 2009 20:59:23 +0000 (20:59 +0000)]
* libmisc/utmp.c: Use xmalloc() rather than malloc().

15 years ago * libmisc/utmp.c: The name returned by ttyame() needs to be copied
nekral-guest [Wed, 22 Apr 2009 20:57:29 +0000 (20:57 +0000)]
* libmisc/utmp.c: The name returned by ttyame() needs to be copied
locally.

15 years ago * src/login.c: Added splint annotations.
nekral-guest [Wed, 22 Apr 2009 20:53:15 +0000 (20:53 +0000)]
* src/login.c: Added splint annotations.

15 years ago * src/login.c: Added assert()s for NULL (or ! NULL) username, and
nekral-guest [Wed, 22 Apr 2009 20:51:13 +0000 (20:51 +0000)]
* src/login.c: Added assert()s for NULL (or ! NULL) username, and
pwd. This helps splint.

15 years agoRe-indent.
nekral-guest [Wed, 22 Apr 2009 20:48:42 +0000 (20:48 +0000)]
Re-indent.

15 years ago * src/login.c: After login_prompt(), do not check for unset
nekral-guest [Wed, 22 Apr 2009 20:46:49 +0000 (20:46 +0000)]
* src/login.c: After login_prompt(), do not check for unset
username, but for empty username.

15 years ago * lib/defines.h: Define USER_NAME_MAX_LENGTH, based on utmp and
nekral-guest [Wed, 22 Apr 2009 20:42:48 +0000 (20:42 +0000)]
* lib/defines.h: Define USER_NAME_MAX_LENGTH, based on utmp and
default to 32.
* libmisc/chkname.c: Use USER_NAME_MAX_LENGTH.
* src/login.c: Use USER_NAME_MAX_LENGTH instead of the default 32.
username also needs to be bigger than USER_NAME_MAX_LENGTH because
it has to be nul-terminated.

15 years ago * src/login.c: Use xmalloc() instead of malloc().
nekral-guest [Wed, 22 Apr 2009 20:21:17 +0000 (20:21 +0000)]
* src/login.c: Use xmalloc() instead of malloc().

15 years ago * src/login.c: Ignore the return value of puts(), fputs(),
nekral-guest [Wed, 22 Apr 2009 20:17:11 +0000 (20:17 +0000)]
* src/login.c: Ignore the return value of puts(), fputs(),
strftime().

15 years ago * src/login.c: timeout, delay, and retries should be unsigned.
nekral-guest [Wed, 22 Apr 2009 20:15:21 +0000 (20:15 +0000)]
* src/login.c: timeout, delay, and retries should be unsigned.
* src/login.c: Ignore the return value of alarm() and sleep().

15 years ago * src/login.c: If we cannot get the terminal configuration, do not
nekral-guest [Wed, 22 Apr 2009 20:12:06 +0000 (20:12 +0000)]
* src/login.c: If we cannot get the terminal configuration, do not
change the terminal configuration. setup_tty() is just a best
effort configuration of the terminal.
* src/login.c: Ignore failures when setting the terminal
configuration.
* src/login.c: Fail if the ERASECHAR or KILLCHAR configurations
are not compatible with a cc_t type.

15 years ago * src/login.c: utent might be NULL after get_current_utmp().
nekral-guest [Wed, 22 Apr 2009 20:07:34 +0000 (20:07 +0000)]
* src/login.c: utent might be NULL after get_current_utmp().

15 years ago * src/login.c: Removed temp_shell. No more used.
nekral-guest [Wed, 22 Apr 2009 20:03:26 +0000 (20:03 +0000)]
* src/login.c: Removed temp_shell. No more used.
* src/login.c: lastlog is only used #ifndef USE_PAM
* src/login.c: Rename lastlog to ll to avoid name clash with the
lastlog type.

15 years ago * src/login.c: Added update_utmp() to group the prepare_utmp and
nekral-guest [Wed, 22 Apr 2009 19:58:39 +0000 (19:58 +0000)]
* src/login.c: Added update_utmp() to group the prepare_utmp and
setutmp (and the utmpx versions).

15 years ago * src/login.c: Do not include netdb.h. gethostbyname() is no more
nekral-guest [Wed, 22 Apr 2009 19:54:28 +0000 (19:54 +0000)]
* src/login.c: Do not include netdb.h. gethostbyname() is no more
called from within login.c. Also UT_ADDR does not exist anymore.

15 years ago * src/login.c: Check if login is run with effective root
nekral-guest [Tue, 21 Apr 2009 22:46:01 +0000 (22:46 +0000)]
* src/login.c: Check if login is run with effective root
privileges. This should be more helpful to users than a failure to
find an utmp entry or failure to access a file.

15 years agoAdded previous commit changelog.
nekral-guest [Tue, 21 Apr 2009 22:39:52 +0000 (22:39 +0000)]
Added previous commit changelog.

15 years ago * libmisc/utmp.c: Reworked. Get rid of Linux specific stuff. Get rid
nekral-guest [Tue, 21 Apr 2009 22:39:14 +0000 (22:39 +0000)]
* libmisc/utmp.c: Reworked. Get rid of Linux specific stuff. Get rid
of global utent/utxent variables. Only reuse the ut_id and maybe
the ut_host fields from utmp.
* lib/prototypes.h, libmisc/utmp.c: Removed checkutmp(),
setutmp(), setutmpx().
* lib/prototypes.h, libmisc/utmp.c: Added get_current_utmp(),
prepare_utmp(), prepare_utmpx(), setutmp(), setutmpx().
* libmisc/utmp.c (is_my_tty): Only compare the name of the utmp
line with ttyname(). (No stat of the two terminals to compare the
devices).
* libmisc/utmp.c: Use getaddrinfo() to get the address of the
host.
* configure.in: Check for getaddrinfo().
* configure.in: Use AC_CHECK_MEMBERS to check for the existence of
fields in the utmp/utmpx structures.
* configure.in: Reject systems with utmpx support but no ut_id
field in utmp. This could be fixed later if needed.
* src/login.c: Use the new utmp functions. This also simplifies
the failtmp() handling.
* src/login.c: passwd_free() renamed to pw_free() and
shadow_free() renamed to spw_free()

15 years ago * NEWS, configure.in: Enable --enable-account-tools-setuid by
nekral-guest [Tue, 21 Apr 2009 22:22:08 +0000 (22:22 +0000)]
* NEWS, configure.in: Enable --enable-account-tools-setuid by
default for PAM builds, as it used to be before the introduction
of this option.

15 years ago * etc/pam.d/Makefile.am: Distribute all pam.d files, even if
nekral-guest [Tue, 21 Apr 2009 22:16:17 +0000 (22:16 +0000)]
* etc/pam.d/Makefile.am: Distribute all pam.d files, even if
ACCT_TOOLS_SETUID is not enabled.

15 years ago * lib/shadowmem.c: Added spw_free().
nekral-guest [Tue, 21 Apr 2009 22:14:10 +0000 (22:14 +0000)]
* lib/shadowmem.c: Added spw_free().
* lib/shadowio.c: Use spw_free() for shadow_free().
* lib/groupmem.c: Added gr_free().
* lib/groupio.c: Use gr_free() for group_free().
* lib/pwmem.c: Include define.h before prototypes.h
* lib/pwmem.c: Added pw_free().
* lib/pwio.c: Use pw_free() for passwd_free().
* lib/sgroupio.c: Added sgr_free().
* lib/sgroupio.c: Use sgr_free() for gshadow_free().
* lib/prototypes.h: Added gr_free(), pw_free(), sgr_free(),
spw_free().

15 years ago * libmisc/shell.c: Add brackets and parenthesis.
nekral-guest [Tue, 21 Apr 2009 22:07:35 +0000 (22:07 +0000)]
* libmisc/shell.c: Add brackets and parenthesis.
* libmisc/shell.c: Avoid assignments in comparisons.
* libmisc/shell.c: Re-indent.

15 years ago * lib/defines.h: Added MIN and MAX macros.
nekral-guest [Tue, 21 Apr 2009 22:06:09 +0000 (22:06 +0000)]
* lib/defines.h: Added MIN and MAX macros.
* libmisc/salt.c: Removed MIN and MAX macros.

15 years agoFix typo (&nbsp;) and fix a compilation warning (wrong const).
nekral-guest [Tue, 21 Apr 2009 22:03:33 +0000 (22:03 +0000)]
Fix typo (&nbsp;) and fix a compilation warning (wrong const).

15 years agoFix typo.
nekral-guest [Tue, 21 Apr 2009 22:02:37 +0000 (22:02 +0000)]
Fix typo.

15 years agoAdded more comments to the changelog entry.
nekral-guest [Mon, 20 Apr 2009 14:06:06 +0000 (14:06 +0000)]
Added more comments to the changelog entry.

15 years ago * NEWS, src/lastlog.c: Fix regression causing empty reports.
nekral-guest [Mon, 20 Apr 2009 14:04:48 +0000 (14:04 +0000)]
* NEWS, src/lastlog.c: Fix regression causing empty reports.

15 years ago * src/login.c: Get rid of pwent. pwd is sufficient as long as it
nekral-guest [Mon, 20 Apr 2009 13:29:15 +0000 (13:29 +0000)]
* src/login.c: Get rid of pwent. pwd is sufficient as long as it
is always coming from xgetpwnam. There is no need to copy pwd to
pwent, this was not a good idea anyway as the strings from pwd
were not duplicated.
* src/login.c: Always free the pwd and spwd structure when we
retrieve a new one. This will clear the password of the previous
user from the memory.
* src/login.c: user_passwd is used to keep point to the password
of the user being authenticated.
* src/login.c: (non PAM) Fail if the user's entry cannot be found
after the user updated her password (if expire() requested an
update).
* src/login.c: If the user does not exist on the system, there is
no need to build a pwd structure (with shell).

15 years ago * src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
nekral-guest [Mon, 20 Apr 2009 13:12:09 +0000 (13:12 +0000)]
* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
Just call ttytype.

15 years agoRe-indent.
nekral-guest [Mon, 20 Apr 2009 13:10:20 +0000 (13:10 +0000)]
Re-indent.

15 years ago * src/login.c: Open the PAM session before pam_setcred and before
nekral-guest [Mon, 20 Apr 2009 12:54:17 +0000 (12:54 +0000)]
* src/login.c: Open the PAM session before pam_setcred and before
initgroups. This is more consistent with rfc86.0.

15 years ago * src/login.c: Added helper functions get_pam_user() and
nekral-guest [Mon, 20 Apr 2009 12:47:04 +0000 (12:47 +0000)]
* src/login.c: Added helper functions get_pam_user() and
get_failent_user().

15 years ago * src/login.c: Added parameter to check_nologin. This will help
nekral-guest [Mon, 20 Apr 2009 12:33:01 +0000 (12:33 +0000)]
* src/login.c: Added parameter to check_nologin. This will help
getting rid of the global pwent variable.

15 years ago * src/login.c: Added comments.
nekral-guest [Mon, 20 Apr 2009 12:27:27 +0000 (12:27 +0000)]
* src/login.c: Added comments.
* src/login.c: Close the user and group files before dropping root
privileges.

15 years ago * src/login.c: We do not need to keep the old umask. Discard the
nekral-guest [Mon, 20 Apr 2009 12:17:38 +0000 (12:17 +0000)]
* src/login.c: We do not need to keep the old umask. Discard the
umask() return value.

15 years ago * src/login.c: We do not need to keep the old umask. Discard the
nekral-guest [Mon, 20 Apr 2009 12:16:07 +0000 (12:16 +0000)]
* src/login.c: We do not need to keep the old umask. Discard the
umask() return value.

15 years ago * libmisc/hushed.c, lib/prototypes.h, src/login.c: Change the
nekral-guest [Mon, 20 Apr 2009 11:48:59 +0000 (11:48 +0000)]
* libmisc/hushed.c, lib/prototypes.h, src/login.c: Change the
hushed() prototype to take a username instead of a passwd
structure in argument. The passwd entry is retrieved withing
hushed().

15 years ago * libmisc/setugid.c: Updated comments.
nekral-guest [Mon, 20 Apr 2009 11:43:36 +0000 (11:43 +0000)]
* libmisc/setugid.c: Updated comments.

15 years ago * libmisc/failure.h, libmisc/failure.c, src/login.c: Added
nekral-guest [Mon, 20 Apr 2009 11:39:16 +0000 (11:39 +0000)]
* libmisc/failure.h, libmisc/failure.c, src/login.c: Added
username as first parameter of failtmp to avoid issues with
non-null terminated ut_user, unavailability of ut_user, incomplete
username (that should not happen currently).

15 years ago * libmisc/failure.h, libmisc/failure.c, src/login.c: Added
nekral-guest [Mon, 20 Apr 2009 11:37:41 +0000 (11:37 +0000)]
* libmisc/failure.h, libmisc/failure.c, src/login.c: Added
username as first parameter of failtmp to avoid issues with
non-null terminated ut_user, unavailability of ut_user, incomplete
username (that should not happen currently).

15 years ago * libmisc/ttytype.c: Add brackets and parenthesis.
nekral-guest [Mon, 20 Apr 2009 11:31:05 +0000 (11:31 +0000)]
* libmisc/ttytype.c: Add brackets and parenthesis.
* libmisc/ttytype.c: Avoid assignments in comparisons.

15 years ago * lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill
nekral-guest [Mon, 20 Apr 2009 11:29:17 +0000 (11:29 +0000)]
* lib/pwio.c, lib/shadowio.c, lib/groupio.c, lib/sgroupio.c: Fill
the password fields with zeros before they are freed.

15 years ago * po/ko.po: Updated Korean translation.
nekral-guest [Sun, 19 Apr 2009 16:26:17 +0000 (16:26 +0000)]
* po/ko.po: Updated Korean translation.

15 years ago * NEWS, src/login.c: Also check if the authentication token of the
nekral-guest [Sun, 19 Apr 2009 16:22:17 +0000 (16:22 +0000)]
* NEWS, src/login.c: Also check if the authentication token of the
user has to be updated in case the user was already authenticated.

15 years ago * src/login.c: fflg is already restricted to root. Move
nekral-guest [Sun, 19 Apr 2009 16:09:00 +0000 (16:09 +0000)]
* src/login.c: fflg is already restricted to root. Move
pam_acct_mgmt(), in case of fflg, earlier. This is equivalent and
simplifies the code.

15 years ago * libmisc/utmp.c: Always call endutent or endutxent when setutent
nekral-guest [Sun, 19 Apr 2009 15:28:38 +0000 (15:28 +0000)]
* libmisc/utmp.c: Always call endutent or endutxent when setutent
or setutxent were used.

15 years ago * src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
nekral-guest [Sun, 19 Apr 2009 13:33:24 +0000 (13:33 +0000)]
* src/login.c: Added comment to make sure PAM_RHOST or PAM_TTY do
not get set to unsanitized values.

15 years ago * libmisc/utmp.c: Do not trust the current utmp entry's ut_line.
nekral-guest [Fri, 17 Apr 2009 21:25:30 +0000 (21:25 +0000)]
* libmisc/utmp.c: Do not trust the current utmp entry's ut_line.
Always set ut_line based on ttyname(0).

15 years ago * NEWS, src/login.c: Do not trust the current utmp entry's ut_line
nekral-guest [Fri, 17 Apr 2009 20:40:26 +0000 (20:40 +0000)]
* NEWS, src/login.c: Do not trust the current utmp entry's ut_line
to set PAM_TTY.

15 years ago * configure.in: Updated version number.
nekral-guest [Wed, 15 Apr 2009 21:46:42 +0000 (21:46 +0000)]
* configure.in: Updated version number.

15 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Wed, 15 Apr 2009 21:46:06 +0000 (21:46 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

15 years agoFix NEWS entry.
nekral-guest [Wed, 15 Apr 2009 21:31:09 +0000 (21:31 +0000)]
Fix NEWS entry.

15 years agoFixed nb.po format and added info about the update.
nekral-guest [Wed, 15 Apr 2009 21:29:00 +0000 (21:29 +0000)]
Fixed nb.po format and added info about the update.

15 years ago * NEWS, src/userdel.c: Fixed SE Linux support. semanage should be
nekral-guest [Wed, 15 Apr 2009 21:14:08 +0000 (21:14 +0000)]
* NEWS, src/userdel.c: Fixed SE Linux support. semanage should be
called at the end.
* src/useradd.c: Always call selinux_update_mapping() (i.e.
semanage), not only when -Z is used.

15 years ago * NEWS, srclib/getlong.c: Fix parsing of octal numbers.
nekral-guest [Wed, 15 Apr 2009 17:50:17 +0000 (17:50 +0000)]
* NEWS, srclib/getlong.c: Fix parsing of octal numbers.

* NEWS, src/login.c: Fix segfault when no user is provided on the
command line.

15 years agolibmisc/system.c was contributed by Dan Walsh.
nekral-guest [Wed, 15 Apr 2009 17:42:34 +0000 (17:42 +0000)]
libmisc/system.c was contributed by Dan Walsh.

15 years ago * NEW, src/vipw.c: SE Linux: Set the default context to the
nekral-guest [Wed, 15 Apr 2009 17:42:27 +0000 (17:42 +0000)]
* NEW, src/vipw.c: SE Linux: Set the default context to the
context of the file being edited. This ensures that the backup
file inherit from the file's context.

15 years agoAdded one TODO item for usermod.
nekral-guest [Tue, 14 Apr 2009 22:19:17 +0000 (22:19 +0000)]
Added one TODO item for usermod.

15 years ago * man/usermod.8.xml: There are no default values for --inactive
nekral-guest [Tue, 14 Apr 2009 22:19:11 +0000 (22:19 +0000)]
* man/usermod.8.xml: There are no default values for --inactive
and --gid. If the options are no provided, the original values are
not changed.

15 years agoRemoved TODO entries
nekral-guest [Tue, 14 Apr 2009 22:19:05 +0000 (22:19 +0000)]
Removed TODO entries
 * groupmems has a testsuite now
 * long user names are tested for gpasswd
 * groups and id arenot receiving updates
 * tests with UID/GID sets to (*id_t)-1 already exist.

15 years agoNorwegian Bokmål translation update
bubulle [Sun, 12 Apr 2009 17:43:31 +0000 (17:43 +0000)]
Norwegian Bokmål translation update

15 years agoAdded release date.
nekral-guest [Sun, 12 Apr 2009 02:45:11 +0000 (02:45 +0000)]
Added release date.

15 years ago * po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
nekral-guest [Sun, 12 Apr 2009 01:24:45 +0000 (01:24 +0000)]
* po/shadow.pot, man/po/shadow-man-pages.pot: Regenerated.
* po/*.po, man/po/*.po: Updated PO files.

15 years agoAdded TODO entry.
nekral-guest [Sun, 12 Apr 2009 00:38:41 +0000 (00:38 +0000)]
Added TODO entry.

15 years ago * src/su.c: If there are no root account, or if the root account
nekral-guest [Sun, 12 Apr 2009 00:28:32 +0000 (00:28 +0000)]
* src/su.c: If there are no root account, or if the root account
has an UID != 0, default to the first UID 0 account.

15 years ago * src/login.c: Restore the echoctl, echoke, onclr flags to the
nekral-guest [Sun, 12 Apr 2009 00:17:36 +0000 (00:17 +0000)]
* src/login.c: Restore the echoctl, echoke, onclr flags to the
terminal termio flags. Reset echoprt, noflsh, tostop. This
behavior seems to have change by mistake in earlier releases
(4.0.8, for no obvious reason).

15 years ago * src/login.c: Fix the count of failures before login exits in
nekral-guest [Sun, 12 Apr 2009 00:08:26 +0000 (00:08 +0000)]
* src/login.c: Fix the count of failures before login exits in
case of PAM enabled configurations.

15 years ago * man/passwd.1.xml: Document that passwd uses PAM to authenticate
nekral-guest [Sat, 11 Apr 2009 23:32:00 +0000 (23:32 +0000)]
* man/passwd.1.xml: Document that passwd uses PAM to authenticate
and change passwords on PAM-enabled builds.

15 years ago * src/newusers.c: Add more information to the mkdir and chown
nekral-guest [Sat, 11 Apr 2009 23:30:44 +0000 (23:30 +0000)]
* src/newusers.c: Add more information to the mkdir and chown
failure messages.

15 years ago * man/po/fr.po: Updated some login.defs entries. Thanks to
nekral-guest [Sat, 11 Apr 2009 22:41:00 +0000 (22:41 +0000)]
* man/po/fr.po: Updated some login.defs entries. Thanks to
Belkacem Abbas.

15 years ago * man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml,
nekral-guest [Sat, 11 Apr 2009 22:36:11 +0000 (22:36 +0000)]
* man/login.defs.d/MAX_MEMBERS_PER_GROUP.xml,
man/login.defs.d/CONSOLE_GROUPS.xml: Fix typos.

15 years agoAdd the POT files to the repository.
nekral-guest [Sat, 11 Apr 2009 19:19:21 +0000 (19:19 +0000)]
Add the POT files to the repository.

15 years agoFix typo.
nekral-guest [Sat, 11 Apr 2009 19:18:38 +0000 (19:18 +0000)]
Fix typo.

15 years ago * man/es/Makefile.am: Disable the distribution of Spanish
nekral-guest [Sat, 11 Apr 2009 18:57:14 +0000 (18:57 +0000)]
* man/es/Makefile.am: Disable the distribution of Spanish
manpages. They are outdated. Please contact
pkg-shadow-devel@lists.alioth.debian.org if you wish to provide
updates.

15 years agoFix typo.
nekral-guest [Sat, 11 Apr 2009 18:44:15 +0000 (18:44 +0000)]
Fix typo.

15 years ago * src/usermod.c, src/useraddd.c: Fix the usage string so that it
nekral-guest [Sat, 11 Apr 2009 18:39:56 +0000 (18:39 +0000)]
* src/usermod.c, src/useraddd.c: Fix the usage string so that it
does not change depending on the configure option. Use a format.

15 years ago * src/gpasswd.c: Fix the usage of the unused macro.
nekral-guest [Sat, 11 Apr 2009 18:37:59 +0000 (18:37 +0000)]
* src/gpasswd.c: Fix the usage of the unused macro.

15 years ago * lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
nekral-guest [Sat, 11 Apr 2009 18:37:08 +0000 (18:37 +0000)]
* lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A
shadow entry is now sufficient for agecheck. Remove the first
passwd entry parameter.

15 years ago * src/userdel.c: Rename argv to args to avoid nameclash with the
nekral-guest [Sat, 11 Apr 2009 16:52:45 +0000 (16:52 +0000)]
* src/userdel.c: Rename argv to args to avoid nameclash with the
main() parameters.

15 years ago * src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
nekral-guest [Sat, 11 Apr 2009 16:47:32 +0000 (16:47 +0000)]
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
if Zflg is set.

15 years agoAdded TODO item.
nekral-guest [Sat, 11 Apr 2009 16:24:06 +0000 (16:24 +0000)]
Added TODO item.

15 years ago * libmisc/getgr_nam_gid.c: Added support for NULL argument.
nekral-guest [Sat, 11 Apr 2009 16:23:21 +0000 (16:23 +0000)]
* libmisc/getgr_nam_gid.c: Added support for NULL argument.
* libmisc/chowntty.c: Reuse getgr_nam_gid(), and get rid of atol().

15 years agoTag one of the remaining strtol.
nekral-guest [Sat, 11 Apr 2009 16:08:00 +0000 (16:08 +0000)]
Tag one of the remaining strtol.

15 years ago * libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system
nekral-guest [Sat, 11 Apr 2009 16:00:45 +0000 (16:00 +0000)]
* libmisc/find_new_gid.c, libmisc/find_new_uid.c: For system
accounts, return the first unused ID, starting from the max value.
This could be useful later to increase the static IDs range.

15 years ago * NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map
nekral-guest [Sat, 11 Apr 2009 15:34:10 +0000 (15:34 +0000)]
* NEWS, src/useradd.c, man/useradd.8.xml: add -Z option to map
SELinux user for user's login.
* NEWS, src/usermod.c, man/usermod.8.xml: Likewise.
* libmisc/system.c, libmisc/Makefile.am, lib/prototypes.h: Added
safe_system(). Used to run semanage.
* lib/prototypes.h, libmisc/copydir.c: Make a
selinux_file_context() an extern function.
* libmisc/copydir.c: Reset SELinux to create files with default
contexts at the end of copy_tree().
* NEWS, src/userdel.c: Delete the SELinux user mapping for user's
login.

15 years ago * src/useradd.c (get_defaults): Close the default file after the
nekral-guest [Sat, 11 Apr 2009 14:55:49 +0000 (14:55 +0000)]
* src/useradd.c (get_defaults): Close the default file after the
default values were read.

15 years agoSlovak translation updated
bubulle [Sat, 11 Apr 2009 13:53:41 +0000 (13:53 +0000)]
Slovak translation updated

15 years agoRe-indent.
nekral-guest [Sat, 11 Apr 2009 13:00:32 +0000 (13:00 +0000)]
Re-indent.

15 years ago * lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.
nekral-guest [Fri, 10 Apr 2009 22:35:43 +0000 (22:35 +0000)]
* lib/Makefile.am, lib/prototypes.h: Added sgetspent.c.

15 years ago * po/POTFILES.in: Added missing files. Sorted.
nekral-guest [Fri, 10 Apr 2009 22:35:37 +0000 (22:35 +0000)]
* po/POTFILES.in: Added missing files. Sorted.

15 years agoRemoved declaration of ep. No more used.
nekral-guest [Fri, 10 Apr 2009 22:35:32 +0000 (22:35 +0000)]
Removed declaration of ep. No more used.
Re-indent.

15 years ago * lib/getdef.c: Use getlong instead of strtol/strtoul.
nekral-guest [Fri, 10 Apr 2009 22:35:26 +0000 (22:35 +0000)]
* lib/getdef.c: Use getlong instead of strtol/strtoul.
* libmisc/getlong, lib/getlong.c, libmisc/Makefile.am,
lib/Makefile.am: getlong.c moved from libmisc/ to lib/.