1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-18 14:06:03 +02:00
Commit Graph

16 Commits

Author SHA1 Message Date
Jun-ichi Takimoto ac6257f150 50418: use setenv(3)/getenv(3) on newer macOS 2022-07-24 20:41:20 +09:00
Felipe Contreras df48cc8404 47785: remove deprecated autoconf functions
STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated.
2021-04-09 21:45:11 +02:00
Daniel Shahaf 8250c5c168 Improve PRIVILEGED fixes
- Fix retval handling in bin_setopt()

- Don't skip_setuid / skip_setgid.  It's not our place to optimize away noops
  (that might not even _be_ noops; they might change the saved uid…).

- Remove HAVE_* guard checks around functions that are used unguarded elsewhere.

- Use bsd-setres_id.c from OpenSSH to provide setresuid() / setresgid()
  everywhere, and thus simplify the ifdef soup.  Fix some preëxisting
  bugs in the macro definitions of setuid() (do we still need that one?).

- Fix zwarning() format codes for variadic arguments type safety

- Restored a comment from HEAD

- Fix failure modes around initgroups()

- Compared privilege restoration code with OpenSSH's permanently_drop_uid() and
  updated as needed

- Add E01 PRIVILEGED sanity checks
2020-02-14 16:06:57 -06:00
Jun-ichi Takimoto 3da3fe770a 44709: incluce sys/capability.h only if HAVE_CAP_GET_PROC is defined 2019-08-28 09:39:13 +09:00
Oliver Kiddle 50597692e0 43759: add support for true colour terminals 2018-11-05 22:24:12 +01:00
dana 394f3a47e4 43075: Support nanosecond-precision time formatting
* Teach ztrftime() %9. and %N for nanoseconds
* Update prompt expansion to pass sub-second times for time formatting
* Update zsh/stat to pass sub-second times for atime/mtime/ctime

Patch heavily based on Oliver's earlier work @ workers/24059
2018-06-20 17:29:56 -05:00
Jun-ichi Takimoto f912e83505 39728: define _GNU_SOURCE on Cygwin 2016-11-07 11:36:17 +09:00
Mikael Magnusson caf48686d0 39014: Use special OpenBSD interface to get correct rand() behavior 2016-08-10 19:06:13 +02:00
Barton E. Schaefer 9dffe404a4 38432: avoid nonstandard setenv() on __APPLE__ 2016-05-09 20:32:01 -07:00
Barton E. Schaefer 2f0efe9f59 32853: redefine VARARR() to use heap rather than stack allocation
enable old behavior via "configure --with-stack-allocation"
2014-07-24 08:45:16 -07:00
Peter Stephenson 920db696cb 32789: --enable-zsh-valgrind allows analysis of heap allocation 2014-06-24 18:50:50 +01:00
Nikolas Garofil 4f4d2b8247 32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilation
fixes

	Src/utils.c: properly ifdef declarations
	Src/zsh_system.h: memmove() should return its dest argument
	Src/signals.c: define ret before use
	Src/mem.c: remove unused pointers
	Src/prototypes.h: use size_t in bcopy()
	Src/compat.c: fix const declaration inconsistency
2014-06-07 13:48:40 -07:00
Mihai Moldovan d88bd1409e Unused function attribute fix for clang compilation 2013-05-10 10:00:52 +01:00
Peter Stephenson 1849668c81 30617: rationalise replacement tgoto() prototype 2012-08-16 13:42:21 +00:00
Peter Stephenson cbb8a3c762 30518: attempt to supply tgoto() prototype when missing only.
For Solaris 10 and earlier.
2012-06-21 08:45:02 +00:00
Peter Stephenson d770d2554b rename system.h to zsh_system.h 2011-05-10 16:44:38 +00:00