aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/tzsetup
Commit message (Collapse)AuthorAgeFilesLines
* Merge head from 7/28Simon J. Gerraty2014-08-191-12/+2
|\ | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * Revert r261296. This removes the WITHOUT_NCURSESW option.Brooks Davis2014-05-151-12/+2
| | | | | | | | | | | | | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses. Notes: svn path=/head/; revision=266157
* | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
* | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
* | Merge from headSimon J. Gerraty2014-05-081-1/+1
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | Merge headSimon J. Gerraty2014-04-281-2/+12
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * Merge from CheriBSD:Brooks Davis2014-01-301-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. MFC after: 4 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=261296
* | sync from headSimon J. Gerraty2013-04-121-0/+5
|\| | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * Fix VERBOSE reporting on results when removing _PATH_LOCALTIME for UTC option.Devin Teske2013-03-041-0/+5
| | | | | | | | | | | | | | | | PR: bin/164976 Submitted by: dteske Notes: svn path=/head/; revision=247780
* | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
* | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
* | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Grammar: tzsetup now has more than one option.Ed Maste2012-02-291-1/+1
| | | | Notes: svn path=/head/; revision=232297
* It's not an error if unlink(2) fails because the pathname doesn't exist.Garrett Wollman2012-02-081-2/+2
| | | | | | | | Noticed by: kevlo Pointy hat to: wollman Notes: svn path=/head/; revision=231181
* Clean up reinstall option and remove duplicate codeEd Maste2012-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 Notes: svn path=/head/; revision=230520
* Fix #ifdef VERBOSE for UTC caseEd Maste2012-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 Notes: svn path=/head/; revision=230299
* Don't write /var/db/zoneinfo when zone is not actually changed.Ed Maste2012-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 Notes: svn path=/head/; revision=230296
* Use a reasonable-sized buffer when formatting error messages aboutGarrett Wollman2012-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) Notes: svn path=/head/; revision=230005
* Sync xdialog_menu() implementation with sade.Max Khon2011-12-011-1/+39
| | | | Notes: svn path=/head/; revision=228176
* calloc +1 DIALOG_LISTITEM to prevent possible wild pointer accessMax Khon2011-11-241-3/+3
| | | | | | | in dlg_default_listitem(). Notes: svn path=/head/; revision=227947
* Port to new libdialog.Max Khon2011-11-242-46/+126
| | | | Notes: svn path=/head/; revision=227934
* If the user is moving from any other time zone to UTC we needDoug Barton2011-11-021-0/+12
| | | | | | | | to delete any old /var/db/zoneinfo file that may exist so that tzsetup -r does the right thing. Notes: svn path=/head/; revision=227011
* - add missing options and arguments to program's usage()Ruslan Ermilov2011-05-202-23/+29
| | | | | | | | | | | and sync it with manpage's SYNOPSIS - generally clean up a manpage's formatting Reviewed by: edwin Notes: svn path=/head/; revision=222139
* Add a menu entry for UTC in the main menu.Edwin Groothuis2011-03-301-5/+39
| | | | | | | | | | PR: bin/156019 Submitted by: Daniel O'Conner Reviewed by: Garrett Cooper <gcooper@FreeBSD.org> MFC after: 1 week Notes: svn path=/head/; revision=220172
* Update dialog to version 20100428. This changes the license under whichNathan Whitehorn2011-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 Notes: svn path=/head/; revision=217309
* Fix support for chrooted installs.Norikatsu Shigemura2010-07-191-3/+3
| | | | | | | Approved by: imp (mentor) Notes: svn path=/head/; revision=210243
* Use literal format strings. Found by clang.Ed Maste2010-06-141-2/+2
| | | | Notes: svn path=/head/; revision=209190
* Add comment that this value is unused.Edwin Groothuis2010-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 Notes: svn path=/head/; revision=208831
* When there is a problem with writing, also bail out.Edwin Groothuis2010-06-051-1/+2
| | | | | | | Found with the clang checker. Notes: svn path=/head/; revision=208830
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | Notes: svn path=/head/; revision=201390
* - Add support for chrooted installs.Edwin Groothuis2009-10-212-77/+156
| | | | | | | | | - Add examples to the man-page. MFC after: 1 week Notes: svn path=/head/; revision=198350
* Instead of having to know which timezone was picked last time, youEdwin Groothuis2009-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 Notes: svn path=/head/; revision=198267
* Make the usage of the default zoneinfo file to install clearer.Edwin Groothuis2009-10-191-5/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=198255
* When tzsetup is run as non-root and the "CMOS clock question onEdwin Groothuis2009-10-191-1/+3
| | | | | | | | | | UTC" is answered as No, it would abort without properly ending the dialog session. MFC after: 1 week Notes: svn path=/head/; revision=198254
* Add a new options (-s) that, when specified, skips the question aboutAttilio Rao2009-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) Notes: svn path=/head/; revision=195339
* - Replace rcsid with __FBSDID.Jung-uk Kim2008-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. Notes: svn path=/head/; revision=179530
* Fix a crash when Arctic Ocean is selected.Jung-uk Kim2008-06-021-3/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=179497
* Sort sections.Ruslan Ermilov2005-01-181-12/+12
| | | | Notes: svn path=/head/; revision=140442
* Update wording regarding geography to match the man page and web site.Murray Stokely2004-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> Notes: svn path=/head/; revision=133425
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131500
* Cosmetic fix: a message was mixed with a dialog box border line.Jimmy Olgeni2003-11-281-1/+1
| | | | | | | Approved by: re (rwatson) Notes: svn path=/head/; revision=123035
* style.Makefile(5)David E. O'Brien2003-04-041-1/+1
| | | | Notes: svn path=/head/; revision=113091
* The .Nm utilityPhilippe Charnier2002-07-141-2/+3
| | | | Notes: svn path=/head/; revision=99968
* Explicitly cast NCONTINENTS to int to silence an overflow warning.Dag-Erling Smørgrav2002-05-151-1/+1
| | | | Notes: svn path=/head/; revision=96647
* Default to UTC on sparc64 also.David E. O'Brien2002-03-061-1/+1
| | | | Notes: svn path=/head/; revision=91728
* mdoc(7) police:Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=81251
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-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. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79537