Commit Graph

17 Commits (master)

Author SHA1 Message Date
Oliver Kiddle 57248b8883 52750: remove ansi2knr support for old pre-ansi K&R compilers 2 months ago
Jun-ichi Takimoto ac6257f150 50418: use setenv(3)/getenv(3) on newer macOS 2 years ago
Felipe Contreras df48cc8404 47785: remove deprecated autoconf functions
STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated.
3 years ago
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
4 years ago
Jun-ichi Takimoto 3da3fe770a 44709: incluce sys/capability.h only if HAVE_CAP_GET_PROC is defined 5 years ago
Oliver Kiddle 50597692e0 43759: add support for true colour terminals 6 years ago
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
6 years ago
Jun-ichi Takimoto f912e83505 39728: define _GNU_SOURCE on Cygwin 8 years ago
Mikael Magnusson caf48686d0 39014: Use special OpenBSD interface to get correct rand() behavior 8 years ago
Barton E. Schaefer 9dffe404a4 38432: avoid nonstandard setenv() on __APPLE__ 8 years ago
Barton E. Schaefer 2f0efe9f59 32853: redefine VARARR() to use heap rather than stack allocation
enable old behavior via "configure --with-stack-allocation"
10 years ago
Peter Stephenson 920db696cb 32789: --enable-zsh-valgrind allows analysis of heap allocation 10 years ago
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
10 years ago
Mihai Moldovan d88bd1409e Unused function attribute fix for clang compilation 11 years ago
Peter Stephenson 1849668c81 30617: rationalise replacement tgoto() prototype 12 years ago
Peter Stephenson cbb8a3c762 30518: attempt to supply tgoto() prototype when missing only.
For Solaris 10 and earlier.
12 years ago
Peter Stephenson d770d2554b rename system.h to zsh_system.h 13 years ago