Bug 1018

Summary: make check fails when DST is active
Product: Sudo Reporter: brickviking
Component: SudoersAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED DUPLICATE    
Severity: low    
Priority: low    
Version: 1.9.8   
Hardware: PC   
OS: Linux   
Attachments: make for AEDT (TZ=Australia/Sydney)
make check for EST (TZ=America/New_York)
make check for GMT (TZ=Europe/London)
make check for NZDT (TZ=Pacific/Auckland)

Description brickviking 2022-01-15 00:15:23 MST
Created attachment 562 [details]
make for AEDT (TZ=Australia/Sydney)

When compiling sudo (either 1.9.7p2 or 1.9.8p2), four of the files in plugins/sudoers/regress/sudoers test differently when using a timezone that's got daylight savings enabled than they do in timezones that don't have daylight savings enabled.

I'll include the four files I made, along with the script I used to generate them. I made tests on Fedora 28, Ubuntu 21.04 and a homebrew LinuxFromScratch I recently made. I extracted the source tarball, configured and made the initial tree, then ran the script below.

==== makeTZcheck.sh ====
#!/bin/bash
# to be run from within the top source directory, i.e. /home/user/src/sudo-1.9.8p2/

TZA=(
	"Pacific/Auckland" "NZDT"
	"Australia/Sydney" "AEDT"
	"America/New_York" "EST"
	"Europe/London" "GMT"
)

LC_ALL=C

for t in 0 2 4 6; do 
	export TZ="${TZA[$t]}"
	echo "Make Check in ${TZ}, time ${TZA[$t+1]}"
	make check 2>&1 | tee make-${TZA[$t+1]}.log
	read -p "Hit Enter when ready" rest
done
unset TZ
===== end of script =====
Comment 1 brickviking 2022-01-15 00:16:39 MST
Created attachment 563 [details]
make check for EST (TZ=America/New_York)
Comment 2 brickviking 2022-01-15 00:17:36 MST
Created attachment 564 [details]
make check for GMT (TZ=Europe/London)
Comment 3 brickviking 2022-01-15 00:18:56 MST
Created attachment 565 [details]
make check for NZDT (TZ=Pacific/Auckland)
Comment 4 Todd C. Miller 2022-01-15 08:48:12 MST

*** This bug has been marked as a duplicate of bug 1006 ***