aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/freebsd-update
Commit message (Collapse)AuthorAgeFilesLines
* use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* Fix typo in r256646: We want to generate lists of directories in INDEX-OLDColin Percival2013-11-091-2/+2
| | | | | | | | | | and INDEX-NEW and compare them, not generate the same list of directories from INDEX-OLD twice... Pointy hats to: cperciva & everybody who didn't proofread EN-13:04 enough Notes: svn path=/head/; revision=257879
* Be more selective when filtering for lib*.so.N files. These are deletedColin Percival2013-10-241-7/+7
| | | | | | | | | | | | | | | | | | | at the end of the upgrade process, after warning users to upgrade any 3rd party software (e.g., from the ports tree) which might link to the libraries being removed. Prior to this commit, the line /usr/lib/libc.so|...|/lib/libc.so.7 matched the regex, which -- upgrading from 9.x to 10.x, where libc.so is a regular file and thus was not part of a line which matched the regex -- resulted in freebsd-update thinking that /usr/lib/libc.so was a shared library which was being removed as part of the upgrade. This had some unfortunate consequences. This will be part of an upcoming Errata Notice. Notes: svn path=/head/; revision=257038
* Allow ~ in file names so libtool droppings in contrib don't break updates.Dag-Erling Smørgrav2013-10-191-1/+1
| | | | | | | | | It has happened twice now, and is likely to happen again. Errata notice candidate. Notes: svn path=/head/; revision=256767
* When installing updates, install new directories first and remove oldColin Percival2013-10-161-0/+17
| | | | | | | | | | | | | | | directories last. This is generally handled by the fact that the list of filesystem objects is sorted, but this sorting is broken by code which moves .so files ahead (so that they're present before any binaries which use them)... that code also moved .so files ahead of directories, which is a problem for upgrading to 10.0 where there's a new directory containing new .so files. Errata Notice Candidate. Notes: svn path=/head/; revision=256646
* Speed up `freebsd-update IDS` by using IFS to split fields instead ofColin Percival2013-10-161-15/+2
| | | | | | | | | | | forking lots of processes to run echo|cut. In one test this reduced the CPU time from 980s to 134s and the wallclock time from 806s to 132s. Submitted by: Oleg Ginzburg Notes: svn path=/head/; revision=256594
* mdoc sweep.Joel Dahl2013-05-121-2/+2
| | | | Notes: svn path=/head/; revision=250582
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-241-1/+1
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Add '%' and '@' to the set of characters which can appear in path names.Colin Percival2011-10-231-1/+1
| | | | | | | Without this change, freebsd-update refuses to accept 9.0 metadata files. Notes: svn path=/head/; revision=226650
* Make freebsd-update(8) smarter in how it handles $FreeBSD$ tags inColin Percival2011-05-111-3/+33
| | | | | | | | | | | | | | | | | | | | | | configuration files. If the current file differs from the canonical version from the old release only due to differences in the $FreeBSD$ tag (which can happen if the system was installed from source code, depending on how the src tree was checked out) then freebsd-update will treat the file as "unmodified" and silently update it to the "clean" version in the new release. If the only change being made to a configuration file is in the $FreeBSD$ tag (e.g., for any configuration files which have been modified locally, now that we're using SVN and the $FreeBSD$ tag changes when a branch is created), freebsd-update will no longer print the diff and prompt "Does this look reasonable (y/n)?". Nagged by: pgollucci MFC after: 1 month Notes: svn path=/head/; revision=221780
* Honor $PAGER instead of always calling more.Gordon Tetlow2011-01-241-4/+9
| | | | | | | | Approved by: colin@ MFC after: 1 week Notes: svn path=/head/; revision=217767
* Typo fix in a comment.Benedict Reuschling2010-11-101-1/+1
| | | | | | | Reviewed by: cperciva Notes: svn path=/head/; revision=215087
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-1/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* In backup_kernel(), support backing up subdirectories and handle filesJaakko Heinonen2010-09-121-5/+6
| | | | | | | | | | with spaces correctly. Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=212505
* "freebsd-update fetch -r NEWRELEASE" is meaningless and probably a typoColin Percival2010-09-101-2/+14
| | | | | | | | | | | for "freebsd-update upgrade -r NEWRELEASE". Error out and suggest what the user probably meant. Submitted by: James Seward MFC after: 1 month Notes: svn path=/head/; revision=212434
* Add warning about freebsd-update upgrade needing lots of disk space.Colin Percival2010-09-101-0/+5
| | | | | | | | Submitted by: jpaetzel MFC after: 1 month Notes: svn path=/head/; revision=212432
* Remind the user that he needs to run 'freebsd-update install' to installColin Percival2010-09-101-0/+4
| | | | | | | | | | new bits after downloading them using 'freebsd-update upgrade'. Submitted by: bapt MFC after: 1 month Notes: svn path=/head/; revision=212431
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whileJoel Dahl2010-08-161-1/+1
| | | | | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> Notes: svn path=/head/; revision=211397
* Update some release version numbers. The patch is based on the oneBenedict Reuschling2010-07-141-5/+5
| | | | | | | | | | | | | | from the PR, but the version numbers reflect the newer ones from http://security.freebsd.org/#sup PR: docs/145227 Submitted by: Glen Barber (glen dot j dot barber at gmail dot com) Reviewed by: cperciva Mentored by: jkois MFC after: 1 week Notes: svn path=/head/; revision=210061
* Fix several typos in macros or macro misusage.Ulrich Spörlein2010-03-121-1/+1
| | | | | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor) Notes: svn path=/head/; revision=205076
* Disable SSL renegotiation in order to protect against a seriousColin Percival2009-12-031-0/+1
| | | | | | | | | | | | | | | | | | protocol flaw. [09:15] Correctly handle failures from unsetenv resulting from a corrupt environment in rtld-elf. [09:16] Fix permissions in freebsd-update in order to prevent leakage of sensitive files. [09:17] Approved by: so (cperciva) Security: FreeBSD-SA-09:15.ssl Security: FreeBSD-SA-09:16.rtld Security: FreeBSD-SA-09:17.freebsd-udpate Notes: svn path=/head/; revision=200054
* Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".Colin Percival2009-09-291-0/+3
| | | | | | | | Tripped over by: too many people to count MFC after: 1 month Notes: svn path=/head/; revision=197618
* Add support for backing up the old kernel when installing a new kernelSimon L. B. Nielsen2009-08-191-1/+161
| | | | | | | | | | | | | | | | | | | | | using freebsd-update. This applies to using freebsd-update in "upgrade mode" and normal freebsd-update on a security branch. The backup kernel will be written to /boot/kernel.old, if the directory does not exist, or the directory was created by freebsd-update in a previous backup. Otherwise freebsd-update will generate a new directory name for use by the backup. By default symbol files are not backed up to save diskspace and avoid filling up the root partition. This feature is fully configurable in the freebsd-update config file, but defaults to enabled. MFC after: 1 week (stable/7) Reviewed by: cperciva Approved by: re (kib) Notes: svn path=/head/; revision=196392
* fix grammar...John-Mark Gurney2009-05-061-1/+1
| | | | | | | Reviewed by: cperciva Notes: svn path=/head/; revision=191857
* In `freebsd-update IDS`, strip out file flags before we look forColin Percival2008-08-081-18/+18
| | | | | | | | | | | non-matching index lines. This fixes a bug where bogus warnings would be printed file has the wrong file flags AND has been updated by FreeBSD Update. Reported by: Royce Williams Notes: svn path=/head/; revision=181425
* Add "IDS" command to freebsd-update. This was present in the originalColin Percival2008-08-022-2/+264
| | | | | | | | | | | | | version of freebsd-update, but I took it out when I rewrote everything and added FreeBSD Update to the base system because I didn't think it was useful. It turns out that quite a few people liked it and wanted it back. Requested by: Royce Williams + others MFC after: 2 weeks Notes: svn path=/head/; revision=181142
* Adjust recognize-shared-libraries regex to avoid matching symlinks toColin Percival2008-03-251-14/+14
| | | | | | | | | | | | | | | | | | | | | | shared libraries. This fixes a problem which resulted in 6.x->7.x upgrades having the /usr/lib/libpthread.so -> libthr.so symlink missing; what happened was that the old libpthread.so symlink pointed to /lib/libpthread.so.2 -- which matched the "/lib/*\.so\.[0-9]+" regex -- but the new symlink didn't, so FreeBSD Update got confused and deleted the symlink as part of its "remove old shared libraries" step. To recreate the symlink (which I understand is necessary for ports like KDE to build) on a 7.x system which FreeBSD Update upgraded from 6.x: # ln -s libthr.so /usr/lib/libpthread.so Reported by: Dmitry RCL Rekman Help diagnosing bug from: kris MFC after: 7 days Notes: svn path=/head/; revision=177601
* When updating the install list for files which have had local changesColin Percival2008-03-231-2/+2
| | | | | | | | | | | merged with upgrade changes, don't try to compute the SHA256 hash of files which don't exist. Reported by: Jaakko Heinonen MFC after: 1 week Notes: svn path=/head/; revision=177527
* Add change missing from previous commit: Remove temporary file.Colin Percival2007-11-161-1/+1
| | | | Notes: svn path=/head/; revision=173672
* Fix "freebsd-update rollback" applied to minor-version upgrades: OldColin Percival2007-11-161-2/+16
| | | | | | | | | | | | | | | | | shared object files which have the same name as currently-installed shared object files should be reinstalled after binaries are rolled back. The order for rolling back updates is therefore 1. Install any old shared object files which can be installed without overwriting a new shared object file. 2. Rollback everything which isn't a shared object or kernel file. 3. Rollback any shared object files which we didn't deal with in (1). 4. Rollback to the old kernel. Bug reported by: Jan Henrik Sylvester MFC after: 3 days Notes: svn path=/head/; revision=173671
* Add support for "freebsd-update -r newrelease upgrade" -- binaryColin Percival2007-11-122-64/+850
| | | | | | | | | | | | | | | | | | | | | | upgrading to new releases. Important parts of this code include * automatically determining which optional components (e.g., src, info, proflibs) are installed. * merging changes in files which are modified locally and have changed between the currently running and new release. * prompting the user to rebuild all 3rd party software before deleting old shared libraries. Yes, this is compatible with "freebsd-update rollback" -- you can test a new -BETA and roll back to the old release if you don't like it. Subject to re@ approval, this will be MFCed before 7.0-BETA3 and 6.3-RC1. MFC after: 2 days Notes: svn path=/head/; revision=173564
* Two minor improvements uncovered by work on upgrading between releases:Colin Percival2007-11-081-2/+14
| | | | | | | | | | | | | | | | * When installing updates, make sure that securelevel <= 0. Otherwise we can't remove the schg flag from files. * When preparing to download updates, check to see if we already have them sitting in the /files/ directory. This saves bandwidth if users run "freebsd-update fetch" more than once without installing updates in between. While I'm here, bump the copyright date. MFC after: 3 days Notes: svn path=/head/; revision=173441
* Change the time of the first "EoL is coming soon, you should upgrade" warningColin Percival2007-08-141-2/+2
| | | | | | | | | | | | | | from EoL minus 6 months to EoL minus 3 months, in order to increase the odds of there actually being a more recent release to which users can upgrade. (In particular, for releases which are only supported for 12 months, it's quite likely that the next release will occur between 6 and 9 months later.) Discussed with: kensmith Approved by: re (bmah) MFC after: 3 days Notes: svn path=/head/; revision=171838
* When storing old versions of files for use in generating new files viaColin Percival2007-08-071-5/+20
| | | | | | | | | | | | | | | patching and for rolling back updates, don't copy a file if it has already been stored. This provides a significant speedup to the "Preparing to download files" stage of "freebsd-update fetch" if many updates have already been applied or if a file being updated is linked many times (such as /rescue/*). Reported by: Paul Dekkers MFC after: 1 week Approved by: re (bmah) Notes: svn path=/head/; revision=171784
* Add some missing '${BASEDIR}/'s. Prior to this commit, FreeBSD UpdateColin Percival2007-05-161-3/+3
| | | | | | | | | | | | operating with the "-b basedir" option would not correctly update files which had flags set or were hardlinked. Submitted by: Karsten Schmidt Pointy hat to: cperciva MFC after: 1 week Notes: svn path=/head/; revision=169603
* Fix problems resulting from SMP kernels (mis-)identifying themselves asColin Percival2007-03-041-3/+20
| | | | | | | | | | | | "SMP-GENERIC" (i386) or "GENERIC" (amd64). FreeBSD 6.2 Errata candidate. MFC after: 3 days Pointy hat to: cperciva Notes: svn path=/head/; revision=167189
* "block is set to UTC" -> "clock is set to UTC"Colin Percival2006-12-311-1/+1
| | | | | | | Submitted by: csjp Notes: svn path=/head/; revision=165667
* Add a sentence to the DESCRIPTION noting that updates aren't availableColin Percival2006-12-261-0/+15
| | | | | | | | | | for -STABLE or -CURRENT. Inspired by submission from: Scott Robbins MFC after: 3 days Notes: svn path=/head/; revision=165549
* Three minor bug fixes:Colin Percival2006-11-251-8/+18
| | | | | | | | | | | | | | | | | | | 1. When downloading metadata files, make sure we only download each file once; without this fix, "freebsd-update fetch" will fail the first time it is run if there have been no updates yet for the installed release. 2. If the FOO kernel is installed in /boot/kernel instead of /boot/FOO and the /boot/FOO directory does not exist, don't try to update /boot/FOO. This is an issue only where an update involves adding a new kernel module. 3. When removing files and directories, operate in reverse lexographical order, in order to ensure that files are removed before the directory which contains them. MFC after: 3 days Notes: svn path=/head/; revision=164600
* Set LC_ALL=C in order to avoid problems with character ranges andColin Percival2006-10-211-0/+3
| | | | | | | | | | sorting. PR: bin/104505 MFC after: 3 days Notes: svn path=/head/; revision=163564
* Conform to wider English usage.Colin Percival2006-09-021-2/+2
| | | | | | | Submitted by: Royce Williams Notes: svn path=/head/; revision=161869
* It's spelled MAN.Ruslan Ermilov2006-09-011-1/+1
| | | | Notes: svn path=/head/; revision=161807
* Add FreeBSD Update 2.0 client code. The build code is in the projectsColin Percival2006-08-313-0/+2075
repository. Sponsored by: FreeBSD security development fundraiser Notes: svn path=/head/; revision=161748