[Heimdal-source-changes] [heimdal/heimdal] 7138a0: Fix rk_mkdir() on WIN32

GitHub noreply at github.com
Ons Dec 26 05:11:21 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/heimdal/heimdal
  Commit: 7138a04690cb13724f723c22f595cc56d35302fd
      https://github.com/heimdal/heimdal/commit/7138a04690cb13724f723c22f595cc56d35302fd
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/roken/mkdir.c
    M lib/roken/roken.h.in
    M windows/NTMakefile.config

  Log Message:
  -----------
  Fix rk_mkdir() on WIN32


  Commit: af9e9388678d30f21e34de26f2fa6d855d55453b
      https://github.com/heimdal/heimdal/commit/af9e9388678d30f21e34de26f2fa6d855d55453b
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/roken/parse_units.c

  Log Message:
  -----------
  Fix infinite loop in print_units_table()


  Commit: 8a77f45aff366b1cd8c70c43ce63eb16a0c9839c
      https://github.com/heimdal/heimdal/commit/8a77f45aff366b1cd8c70c43ce63eb16a0c9839c
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M .gitignore
    M appl/Makefile.am
    R appl/su/ChangeLog
    R appl/su/Makefile.am
    R appl/su/NTMakefile
    R appl/su/su.1
    R appl/su/su.c
    R appl/su/supaths.h
    M configure.ac

  Log Message:
  -----------
  Remove appl/su


  Commit: 3b8c762dd09153a3c3e5a7f729bb0878ec50d90a
      https://github.com/heimdal/heimdal/commit/3b8c762dd09153a3c3e5a7f729bb0878ec50d90a
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    R cf/broken-glob.m4
    M cf/roken-frag.m4
    M include/config.h.w32
    M lib/roken/Makefile.am
    M lib/roken/NTMakefile
    R lib/roken/glob.c
    R lib/roken/glob.hin

  Log Message:
  -----------
  Remove lib/roken glob()

We no longer use it since removing ftp from appl/.

Note that expansion of ~username/ couldn't have been working because
k_getpwnam() was being called with an unsigned short * that was forcibly
cast to char *, but it really was shorts, not chars...  Anyone who ever
feels like reviving lib/roken/glob.[ch] will want to fix that...


  Commit: 8fae8a1826faca4739eaf1cf6baf9cf4c6360598
      https://github.com/heimdal/heimdal/commit/8fae8a1826faca4739eaf1cf6baf9cf4c6360598
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M cf/roken-frag.m4
    M include/config.h.w32
    R lib/roken/iruserok.c
    M lib/roken/roken.h.in

  Log Message:
  -----------
  Remove iruserok()


  Commit: 784637709b8863d38a37ee745f7e7a39550643d5
      https://github.com/heimdal/heimdal/commit/784637709b8863d38a37ee745f7e7a39550643d5
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/roken/Makefile.am
    M lib/roken/roken.h.in
    R lib/roken/verify.c
    M lib/roken/version-script.map

  Log Message:
  -----------
  Remove unix_verify_user()


  Commit: a9886924341446064fdfc68ed4a2c1b3921c007c
      https://github.com/heimdal/heimdal/commit/a9886924341446064fdfc68ed4a2c1b3921c007c
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M cf/krb-func-getlogin.m4
    M include/config.h.w32

  Log Message:
  -----------
  Add check for getlogin_r()


  Commit: e2685c5b7c705225200244900d335bfec5b16d6c
      https://github.com/heimdal/heimdal/commit/e2685c5b7c705225200244900d335bfec5b16d6c
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M cf/check-getpwnam_r-posix.m4
    M include/config.h.w32

  Log Message:
  -----------
  Add check for getpw*_r()


  Commit: a152c4c8085a27b2c100f68dd2880a87c7909d28
      https://github.com/heimdal/heimdal/commit/a152c4c8085a27b2c100f68dd2880a87c7909d28
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/roken/Makefile.am
    R lib/roken/k_getpwnam.c
    R lib/roken/k_getpwuid.c
    M lib/roken/roken.h.in
    M lib/roken/version-script.map

  Log Message:
  -----------
  Remove k_getpwnam() and k_getpwuid()


  Commit: 073ffd04238d8c7068ea14a44e561d48ca28cd11
      https://github.com/heimdal/heimdal/commit/073ffd04238d8c7068ea14a44e561d48ca28cd11
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/roken/roken-common.h

  Log Message:
  -----------
  roken: Make sure we have MAX_PATH


  Commit: 95eb83c42431e9cae43e25bb501ddffb9cf1fe33
      https://github.com/heimdal/heimdal/commit/95eb83c42431e9cae43e25bb501ddffb9cf1fe33
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M lib/krb5/expand_path.c
    M lib/roken/Makefile.am
    M lib/roken/NTMakefile
    A lib/roken/getuserinfo.c
    M lib/roken/roken.h.in
    A lib/roken/test-getuserinfo.c
    M lib/roken/version-script.map

  Log Message:
  -----------
  roken: Add roken_get_username() and friends

We add roken_get_{shell, username, appdatadir, homedir}() functions.  These use
a combination of secure_getenv(), getpwuid_r(), getlogin_r(), or various WIN32
functions to get this information.

Use roken_get_appdatadir() instead of roken_get_homedir() when looking for
dotfiles.


  Commit: 620862049e72a9c8d95612728f8d3f5ff10cfcc4
      https://github.com/heimdal/heimdal/commit/620862049e72a9c8d95612728f8d3f5ff10cfcc4
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M appl/afsutil/pagsh.c
    M appl/otp/otp.c
    M configure.ac
    M kadmin/NTMakefile
    M lib/hx509/softp11.c
    M lib/krb5/config_file.c
    M lib/krb5/get_default_principal.c

  Log Message:
  -----------
  Use roken_get_*() instead of getpwuuid()

Using non-reentrant getpwuid() (or getpwnam(), or getspnam())  can be
dangerous.  We had a report of a login application / PAM that calls
those, and Heimdal, by calling them too, clobbered the cached struct
passwd used by the login app / PAM.


  Commit: 3f1451a4c37d24b98c0adcd5ceeefb0ed25ad4c2
      https://github.com/heimdal/heimdal/commit/3f1451a4c37d24b98c0adcd5ceeefb0ed25ad4c2
  Author: Nicolas Williams <nico at twosigma.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M appl/kf/kf.c
    M lib/kadm5/init_c.c
    M lib/roken/Makefile.am
    M lib/roken/NTMakefile
    R lib/roken/get_default_username.c
    M lib/roken/roken.h.in
    M lib/roken/version-script.map

  Log Message:
  -----------
  Remove get_default_username()


  Commit: 6ce1aa84c53970e6ae5b2d8a8c74624ad3f7ad64
      https://github.com/heimdal/heimdal/commit/6ce1aa84c53970e6ae5b2d8a8c74624ad3f7ad64
  Author: Luke Howard <lukeh at padl.com>
  Date:   2018-12-25 (Tue, 25 Dec 2018)

  Changed paths:
    M .gitignore
    M lib/krb5/kuserok.c
    M lib/roken/Makefile.am
    R lib/roken/getxxyyy.c
    M lib/roken/roken.h.in

  Log Message:
  -----------
  Remove rk_getpw*_r() functions


Compare: https://github.com/heimdal/heimdal/compare/db859520b4c1...6ce1aa84c539
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Heimdal-source-changes mailing list