Bug 1018 - make check fails when DST is active
make check fails when DST is active
Status: RESOLVED DUPLICATE of bug 1006
Product: Sudo
Classification: Unclassified
Component: Sudoers
1.9.8
PC Linux
: low low
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-01-15 00:15 MST by brickviking
Modified: 2022-01-15 08:48 MST (History)
0 users

See Also:


Attachments
make for AEDT (TZ=Australia/Sydney) (20.72 KB, text/plain)
2022-01-15 00:15 MST, brickviking
Details
make check for EST (TZ=America/New_York) (20.12 KB, text/plain)
2022-01-15 00:16 MST, brickviking
Details
make check for GMT (TZ=Europe/London) (17.35 KB, text/plain)
2022-01-15 00:17 MST, brickviking
Details
make check for NZDT (TZ=Pacific/Auckland) (20.72 KB, text/plain)
2022-01-15 00:18 MST, brickviking
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***