|
Bugzilla – Full Text Bug Listing |
| Summary: | make check fails when DST is active | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | brickviking |
| Component: | Sudoers | Assignee: | 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) |
||
Created attachment 563 [details]
make check for EST (TZ=America/New_York)
Created attachment 564 [details]
make check for GMT (TZ=Europe/London)
Created attachment 565 [details]
make check for NZDT (TZ=Pacific/Auckland)
|
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 =====