summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup
Commit message (Collapse)AuthorAgeFilesLines
* Grammar: tzsetup now has more than one option.emaste2012-02-291-1/+1
|
* It's not an error if unlink(2) fails because the pathname doesn't exist.wollman2012-02-081-2/+2
| | | | | Noticed by: kevlo Pointy hat to: wollman
* Clean up reinstall option and remove duplicate codeemaste2012-01-251-23/+12
| | | | | | | | | | | | | | - Move the reinstall logic to be before menus are initialised (menus are not needed when reinstalling a zonefile). - Remove unnecessary re-initialization of path_db. - Update variable name and error message because we now use the zone name relative to /usr/share/zoneinfo, not the full path. pr: bin/164041 Submitted by: Devin Teske <dteske vicor com> MFC after: 1 week
* Fix #ifdef VERBOSE for UTC caseemaste2012-01-181-18/+25
| | | | | | | | | | | Update verbose output to match what actually happens when selecting the UTC option, and when the -n option is used. Patch updated slightly for new libdialog. PR: bin/164042 Submitted by: Devin Teske <dteske vicor com> MFC after: 2 weeks
* Don't write /var/db/zoneinfo when zone is not actually changed.emaste2012-01-181-3/+5
| | | | | | | | | If the specified zone file does not exist or the -n flag is specified, do not update /var/db/zoneinfo. PR: bin/164039 Submitted by: Devin Teske <dteske vicor com> MFC after: 1 week
* Use a reasonable-sized buffer when formatting error messages aboutwollman2012-01-121-3/+31
| | | | | | | | | | | | installing zoneinfo. While we're in the vicinity, add some missing error checking to eliminate an unhelpful error message when unlink() fails. /me is embarrassed by the quality of his 16-year-old code. The whole thing is awful and could stand a complete rewrite. PR: 164038 Submitted by: Devin Teske (but implemented differently)
* Sync xdialog_menu() implementation with sade.fjoe2011-12-011-1/+39
|
* calloc +1 DIALOG_LISTITEM to prevent possible wild pointer accessfjoe2011-11-241-3/+3
| | | | in dlg_default_listitem().
* Port to new libdialog.fjoe2011-11-242-46/+126
|
* If the user is moving from any other time zone to UTC we needdougb2011-11-021-0/+12
| | | | | to delete any old /var/db/zoneinfo file that may exist so that tzsetup -r does the right thing.
* - add missing options and arguments to program's usage()ru2011-05-202-23/+29
| | | | | | | | and sync it with manpage's SYNOPSIS - generally clean up a manpage's formatting Reviewed by: edwin
* Add a menu entry for UTC in the main menu.edwin2011-03-301-5/+39
| | | | | | | PR: bin/156019 Submitted by: Daniel O'Conner Reviewed by: Garrett Cooper <gcooper@FreeBSD.org> MFC after: 1 week
* Update dialog to version 20100428. This changes the license under whichnwhitehorn2011-01-121-3/+3
| | | | | | | | | | | | | dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new features and a new and better libdialog API. The existing libdialog will be kept temporarily as libodialog for compatibility purposes until sade, sysinstall and tzsetup have been either updated or replaced. __FreeBSD_version is now 900030. Discussed on: -current Approved by: core Obtained from: http://invisible-island.net/dialog
* Fix support for chrooted installs.nork2010-07-191-3/+3
| | | | Approved by: imp (mentor)
* Use literal format strings. Found by clang.emaste2010-06-141-2/+2
|
* Add comment that this value is unused.edwin2010-06-051-1/+1
| | | | | | | It is obvious that it isn't used, but both clang and Coverity talk about it. Found with: Coverity Prevent(tm) CID: 8066
* When there is a problem with writing, also bail out.edwin2010-06-051-1/+2
| | | | Found with the clang checker.
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* - Add support for chrooted installs.edwin2009-10-212-77/+156
| | | | | | - Add examples to the man-page. MFC after: 1 week
* Instead of having to know which timezone was picked last time, youedwin2009-10-202-16/+80
| | | | | | | now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. MFC after: 1 week
* Make the usage of the default zoneinfo file to install clearer.edwin2009-10-191-5/+6
| | | | 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-042-24/+33
| | | | | | | | | | 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-032-241/+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
* Sort sections.ru2005-01-181-12/+12
|
* 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>
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+4
|
* Cosmetic fix: a message was mixed with a dialog box border line.olgeni2003-11-281-1/+1
| | | | Approved by: re (rwatson)
* style.Makefile(5)obrien2003-04-041-1/+1
|
* The .Nm utilitycharnier2002-07-141-2/+3
|
* 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
|
* mdoc(7) police:ru2001-08-071-1/+3
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-2/+4
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Remove -Wall. It breaks compiling with non-gcc compilers.obrien2001-04-051-1/+1
|
* Default the UTC question to "yes" on the Alpha.obrien2001-04-051-3/+10
|
* This builds fine with -Wall.obrien2001-04-051-1/+1
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* 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
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Use Fx macro wherever possible.ru2000-11-141-1/+1
|
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebywollman2000-10-101-0/+1
| | | | <time.h>).
* Remove unneded -lmytinfoache2000-09-161-2/+2
|
* 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
OpenPOWER on IntegriCloud