summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup/tzsetup.c
Commit message (Collapse)AuthorAgeFilesLines
* Instead of having to know which timezone was picked last time, youedwin2009-10-201-15/+74
| | | | | | | now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. MFC after: 1 week
* When tzsetup is run as non-root and the "CMOS clock question onedwin2009-10-191-1/+3
| | | | | | | UTC" is answered as No, it would abort without properly ending the dialog session. MFC after: 1 week
* Add a new options (-s) that, when specified, skips the question aboutattilio2009-07-041-22/+28
| | | | | | | | | | adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock which is useful in some cases (example: host user in a jail). Sponsored by: Sandvine Incorporated Initially submitted by: Matt Koivisto <mkoivisto at sandvine dot com> Approved by: re (kib)
* - Replace rcsid with __FBSDID.jkim2008-06-031-236/+261
| | | | | | - Remove paths.h and embed it in the source. - Remove stale alpha support. - Clean up compiler warnings and fix style(9) bugs.
* Fix a crash when Arctic Ocean is selected.jkim2008-06-021-3/+2
| | | | MFC after: 1 week
* Update wording regarding geography to match the man page and web site.murray2004-08-101-1/+1
| | | | | | | Specifically, change the second level menu title from 'Country' to 'Country or Region', since e.g. Hong Kong is not a country. Submitted by: Xin LI <delphij@frontfree.net>
* Cosmetic fix: a message was mixed with a dialog box border line.olgeni2003-11-281-1/+1
| | | | Approved by: re (rwatson)
* Explicitly cast NCONTINENTS to int to silence an overflow warning.des2002-05-151-1/+1
|
* Default to UTC on sparc64 also.obrien2002-03-061-1/+1
|
* Default the UTC question to "yes" on the Alpha.obrien2001-04-051-3/+10
|
* Convert to use the <sys/queue.h> macros rather than fiddling with the queueben2000-12-291-8/+6
| | | | | | structure internals. Reviewed by: markm
* Use dialog_noyes() for UTC selection; uses No as default answer now.jkh2000-12-161-1/+1
|
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebywollman2000-10-101-0/+1
| | | | <time.h>).
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Convert err() to errx(), reason is already provided. Complete thecharnier2000-01-231-3/+13
| | | | abort on allocation failure instead of deferencing NULL later.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* - ignore the user-supplied umask, set it to 0022 by defaultru1999-08-051-5/+9
| | | | | | | - install /etc/wall_cmos_clock with 0444 mode rather than 0666 - -Wall inspection PR: 12967
* Make UTC or local time message a little more clear.mharo1999-06-231-2/+2
|
* Add a `default' feature to tzsetup for use in script-driven installationwollman1999-02-021-2/+15
| | | | | (if someone writes the other half). Also rewrite the man page in a more appropriate (formal) style.
* Old stuff lying around a source tree:peter1998-12-161-5/+10
| | | | Create/remove /etc/wall_cmos_clock without using system() and magic paths.
* Minor brace gymnastics so that /etc/wall_cmos_clock is reallysteve1998-01-101-3/+4
| | | | | | | created. PR: 5473 Submitted by: MIHIRA Yoshiro <sanpei@yy.cs.keio.ac.jp>
* Teach tzsetup to understand blank lines in the iso3166 file.joerg1997-11-071-2/+2
| | | | Found by: evanc@synapse.net (Evan Champion)
* Add usage(). Document -n flag. Do not touch/remove /etc/wall_cmos_clockcharnier1997-10-271-11/+19
| | | | when -n (do nothing) is used.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Ask about local or UTC here, like we used to.jkh1997-02-161-0/+8
|
* At the end it was much simpler than I thought. 26 * 26 = 676 and not 576.jhay1997-02-011-2/+3
| | | | | South Africa and a few other countries exists again. This fix pr 2595. This should go into 2.2.
* Make some of the less necessary user feedback #ifdef VERBOSE.jkh1997-01-211-0/+4
| | | | | | | | | We could also make this stuff only come out when getpid() != 1 and thus avoid the install case (where it really is just too verbose, and people have complained), but this seems less messy and no one complained when tzsetup didn't print the final "things went fine!" messages (which sort of contravene the UNIX spirit of only yelling when you need to anyway).
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove two uninitialized and unused variables that used to cause ajoerg1996-11-191-3/+2
| | | | segfault before.
* Completely re-vamped `tzsetup':wollman1996-11-191-0/+651
- It no longer attempts to fiddle wall-vs-UTC-in-RTC. The results were just confusing most of the time. - The program no longer contains a pre-compiled list of timezones (compiled by groveling through the tzdata source files for comments starting with `ZONE-DESCR'). Now it uses the new `zone.tab' file supplied with current versions of the timezone data files, to determine the list at run time. (It also requires the ISO 3166 table I committed some months ago.) AS A RESULT, this program will NOT work until the new timezone data files are committed (should happen sometime soon).
OpenPOWER on IntegriCloud