summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace rev. 1.9 with patch from OpenBSD.pav2007-05-121-3/+3
| | | | | | Submitted by: Ray Lai <ray@cyth.net> Obtained from: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/tip/acu.c.diff?r1=1.13&r2=1.14 MFC after: 1 week
* Fix crash when using 'du' capability: NULL return of strpbrk was not handledpav2007-05-121-2/+2
| | | | | | | PR: bin/108368 Reported by: Ivo Hazmuk <ivo@vutbr.cz> Submitted by: rdivacky MFC after: 2 weeks
* Expand documentation of -f optionpav2007-05-121-1/+8
| | | | | | PR: docs/66265 Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> MFC after: 1 week
* Set the program return value non-zero if we enounterkientzle2007-05-081-0/+1
| | | | | | | | an error while skipping the body of an entry during "tar -t" processing. Thanks to: Spencer Minear PR: misc/112521
* Cast to intmax_t to print tv_sec in struct timeval.dwmalone2007-05-072-16/+19
| | | | | Avoid shadowing a global variable with a function argument. Set WARNS to 6.
* Use [u]intmax_t to printf unknown integer types.dwmalone2007-05-071-36/+31
| | | | | Make timeprt always allocate memory, to make things a little simpler. Remove an unused variable.
* Make logmsg take const char * arguments.dwmalone2007-05-072-3/+5
| | | | Set WARNS to 6.
* ANSIfy function definitions.dwmalone2007-05-076-41/+22
| | | | | Move some extern declarations to a header file. Remove an unneeded extern declaration for optarg.
* Fix some warnings by making things const, adding missing headers,dwmalone2007-05-073-5/+6
| | | | | | removing some unused variables and making a variable unsigned. MFC after: 3 weeks
* Initialise variable size so that reading stdin works deterministically.dwmalone2007-05-032-2/+5
| | | | | | Add missing include. Default to WARNS=6.
* Add myselfbenjsc2007-05-031-0/+1
| | | | Approved by: mlaier (mentor)
* If lstat(2) fails, have bsdtar return a non-zero exit code if thecperciva2007-05-031-0/+10
| | | | | | | | | | | | | failed path is one which was specified on the command line. This is a compromise between the situation prior to revision 1.57 (where a race between tar(1) and rm(1) could cause tar(1) to spuriously report an error) and the situation after revision 1.57 (where "tar -c /no/such/path" prints a warning but returns with an exit code of zero). Inspired by: rafan MFC after: 1 week
* Back out all POSIXified *env() changes.ache2007-05-015-13/+12
| | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
* limits calls setenv("name=value", "value", 1); which violates POSIX:ache2007-04-301-2/+2
| | | | | | | "The setenv( ) function shall fail if: [EINVAL] The name argument is a null pointer, points to an empty string, or points to a string containing an '=' character." The fix (like all others in this subject) is backward-compatible.
* env calls setenv("name=value", "value", 1); which violates POSIX:ache2007-04-301-3/+3
| | | | | | | "The setenv( ) function shall fail if: [EINVAL] The name argument is a null pointer, points to an empty string, or points to a string containing an '=' character." The fix (like all others in this subject) is backward-compatible.
* Slightly tune previous fix: free memory if !exportache2007-04-301-2/+2
|
* Prepare for upcoming POSIXed putenv() rewrite:ache2007-04-301-2/+3
| | | | don't free memory after putenv()
* Prepare for upcoming POSIXed putenv() rewrite:ache2007-04-301-1/+1
| | | | don't free memory after putenv()
* o Fill the list of icmp types; make its size depend on ICMP_MAXTYPE.maxim2007-04-301-20/+50
| | | | | | | | | | o Print "unknown ICMP" instead of "(null)" if we don't have a description for a icmp type. Based on code Submitted by: Christoph Weber-Fahr PR: misc/112126 MFC after: 2 weeks
* Eliminate error with -W* strict flags and make putenv() calls conforming toache2007-04-301-3/+3
| | | | standard and portable in the same way as f.e. gcc internal portable code does.
* Change the date for Daylight Savings in the US.dwmalone2007-04-291-2/+2
| | | | | | PR: 111102 Submitted by: Sean Farley <sean-freebsd@farley.org> Obtained from: OpenBSD
* Add some more examples. It always takes me a long time to find the Sbrian2007-04-271-2/+27
| | | | | | modifier (-t is ignored without it). MFC after: 1 week
* - Added entry for Marcelo S. Araujo.araujo2007-04-271-0/+1
| | | | Approved by: itetcu (comentor)
* add myself.nemoliu2007-04-251-0/+1
| | | | Approved by: delphij (mentor)
* Insert explicit space between the output fields to prevent themyar2007-04-231-3/+3
| | | | | | from running together when a field overflows. MFC after: 1 week
* Don't forget to bump document date after changing the content.yar2007-04-211-1/+1
|
* Change the semantics of -i (in-place editing) so that it treatsyar2007-04-214-11/+83
| | | | | | | | | | | | | | | | | each file independently from other files. The new semantics are desired in the most of practical cases, e.g.: delete lines 5-9 from each file. Keep the previous semantics of -i under a new option, -I, which uses a single continuous address space covering all files to edit in-place -- they are too cool to just drop them. Add regression tests for -i and -I. Approved by: dds Compared with: GNU sed Discussed on: -hackers MFC after: 2 weeks
* Improve logging when -dm is specified: if the node is consideredfjoe2007-04-203-8/+7
| | | | | out-of-date print not only "modified before source" message but also the path of youngest source.
* When remaking makefiles check that mtime has actually changed.fjoe2007-04-201-3/+14
| | | | | | | | | | | | | | | | | This fixes infinite restart in the following case: Makefile: foo foo: bar do-something Unlike GNU make, BSD make considers "Makefile" node as remade even if "foo" is up-to-date and was not actually rebuilt. GNU make does not consider nodes without commands as remade if child nodes were not actually rebuilt. Most probably, more proper fix would be to bring BSD make behaviour in-line with GNU make but this would be more intrusive change.
* Change the export option from -w (write) to -X.dds2007-04-182-15/+15
| | | | | | | While implementing import it became apparent that write as a mnemonic is ambiguous and confusing. MFC after: 8 days
* Complain on write errors.dds2007-04-181-2/+6
| | | | | | Use correct type for write_text. MFC after: 8 days
* Add export capability through the new -w flag.dds2007-04-182-7/+57
| | | | | Discussed in: -arch MFC after: 8 days
* Ignore trailing '/' when comparing pathnames, so thatkientzle2007-04-181-3/+26
| | | | | "tar -u" works again. Otherwise, "tar -u" wants to treat every dir as new and re-adds it.
* When testing basic functionality, strip trailing '/' fromkientzle2007-04-181-3/+3
| | | | dir names, so they match the names generated by 'find'.
* - Add a new 'j' switch and runtime option to toggle display jail id forrafan2007-04-171-10/+47
| | | | | | | | | | each process. - While I'm here, keep help message sorted by keys PR: 98489, 98975 Submitted by: clsung Approved by: delphij (mentor) MFC after: 2 weeks
* In libarchive: Downgrade ARCHIVE_FATAL and ARCHIVE_FAILED errors whichcperciva2007-04-161-9/+8
| | | | | | | | | | | | | | | | occur on the write side of extracting a file to ARCHIVE_WARN errors when returning them from archive_read_extract. In bsdtar: Use the return code from archive_read_data_into_fd and archive_read_extract to determine whether we should continue trying to extract an archive after one of the entries fails. This commit makes extracting a truncated tarball complain once about the archive being truncated, instead of complaining twice (once when trying to extract an entry, and once when trying to seek to the next entry). Discussed with: kientzle
* Use proper type cast for ctype macroache2007-04-141-1/+1
|
* - Add new 'a' switch and runtime option that allows 'top' to display processstas2007-04-141-3/+70
| | | | | | | | | titles extracted from argv vector instead of the real executable names. This is useful when you want to watch applications that set their status information via setproctitle(3). Approved by: alfred MFC after: 2 weeks
* Portability.kientzle2007-04-131-0/+2
| | | | Thanks to: Martin Koeppe for testing on Interix
* In .error and .warning, prefer command-line variablesru2007-04-121-1/+1
| | | | | | to globals, as per documentation. Nudged by: Jeremie Le Hen
* Restore the ".Sh BUGS" line that was accidentally removedru2007-04-121-0/+1
| | | | in the previous commit.
* Make it easier to support more platforms.kientzle2007-04-122-8/+7
| | | | Thanks to: Joerg Sonnenberger for pointing out the need and the technique.
* Remove irrelevant comment about T/TCP in BUGS.des2007-04-111-8/+0
| | | | Spotted by: ru@
* Remove -T from getopt() spec and usage string.des2007-04-111-2/+2
| | | | Submitted by: ru@
* Bump Dd.des2007-04-111-1/+1
|
* Remove T/TCP support, and the -T option which was needed to disable it.des2007-04-114-16/+3
| | | | MFC after: 3 weeks
* Eliminate memory leak from an accidental malloc().emaste2007-04-101-1/+0
|
* Update to match revision 1.23 of touch.c.grog2007-04-101-36/+18
| | | | Clarify some details.
* Usage: print base name of program.grog2007-04-101-20/+47
| | | | | | | -A flag: respect the -a and -m flags. imply the -c flag. Requested in principle by: brian
* Make use of ptrace(2) instead of procfs in truss(1), eliminatingdelphij2007-04-1016-585/+452
| | | | | | | | yet another need of an available /proc/ mount. Tested with: make universe Submitted by: howardsu Reviewed by: alfred
OpenPOWER on IntegriCloud