Package: ucspi-unix / 1.0-6

Metadata

Package Version Patches format
ucspi-unix 1.0-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix getopt string.patch | (download)

unixserver.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix optstring in unixserver.c
 Both manual page and getopt loop mention '-d' and '-D' command
 line option, but letters 'd' and 'D' was missing from getopt
 string, causing `unixserver' to consider `-d' and `-D' options
 invalid.
line buffered.patch | (download)

unixserver.c | 12 9 + 3 - 0 !
1 file changed, 9 insertions(+), 3 deletions(-)

 flush the standard output stream after logging a line
 Make it possible for a parent process to read log lines as they come.
strtoul errno.patch | (download)

unixserver.c | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 catch overflow errors when converting strings to numbers
 Passing e.g. `-u 99999999999` would not change the variable at all, yet
 not be reported as an error.
strtoul max.patch | (download)

unixserver.c | 11 10 + 1 - 0 !
1 file changed, 10 insertions(+), 1 deletion(-)

 make sure the strtoul() value is a valid unsigned int
strtoul int uid mode.patch | (download)

Makefile | 10 9 + 1 - 0 !
TARGETS | 2 2 + 0 - 0 !
hasintmode.h0 | 1 1 + 0 - 0 !
hasintmode.h1 | 2 2 + 0 - 0 !
hasintuid.h0 | 1 1 + 0 - 0 !
hasintuid.h1 | 2 2 + 0 - 0 !
tryintmode.c | 14 14 + 0 - 0 !
tryintuid.c | 14 14 + 0 - 0 !
unixserver.c | 48 42 + 6 - 0 !
9 files changed, 87 insertions(+), 7 deletions(-)

 use `unsigned short` for `uid_t`, `gid_t`, and `mode_t` if needed
chown if needed.patch | (download)

unixserver.c | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 do not call chown(2) unless we need to
 Apparently some glibc/kernel combinations will fail for unprivileged
 users even for chown(-1, -1).
 Fixes the FTBFS on sparc64.
prototypes.patch | (download)

trypeercred.c | 2 1 + 1 - 0 !
trywaitp.c | 2 1 + 1 - 0 !
unixserver.c | 6 3 + 3 - 0 !
3 files changed, 5 insertions(+), 5 deletions(-)

 fix ftbfs with gcc 15 by fixing function prototypes
Bug-Debian: https://bugs.debian.org/1098026