]> err.no Git - moreutils/log
moreutils
16 years agoset umask before calling mkstemp
Joey Hess [Fri, 11 Apr 2008 21:47:28 +0000 (17:47 -0400)]
set umask before calling mkstemp

This is a POSIX portability thing.

Restore the original umask after.

16 years agoupdate physmem copyright
Joey Hess [Fri, 11 Apr 2008 21:44:19 +0000 (17:44 -0400)]
update physmem copyright

The file was earlier changed to the older, GPL 2 version.

16 years agofix two bugs writing the output file
Joey Hess [Fri, 11 Apr 2008 21:42:38 +0000 (17:42 -0400)]
fix two bugs writing the output file

If the output file doesn't exist, the new code was buggy and did not create
it.

Also, the rename could fail (ie, /tmp on another filesystem). So if it
falls fall back to the manual copy.

16 years agomove code into a function
Joey Hess [Fri, 11 Apr 2008 20:15:29 +0000 (16:15 -0400)]
move code into a function

16 years agofix edge cases
Joey Hess [Fri, 11 Apr 2008 20:10:18 +0000 (16:10 -0400)]
fix edge cases

If a file an exact multiple of the max buffer size were sponged, it
would fail at the end due to trying to write 0 remaining bytes from the
buffer to the temp file. A similar bug occurred if sponge's input was
empty. Amazing how such a seemingly simple thing can get so tricky..

Also added check for read error from the temp file, just in case.

16 years agoreorder defines
Joey Hess [Fri, 11 Apr 2008 19:54:30 +0000 (15:54 -0400)]
reorder defines

16 years agoset up signal handlers before creating temp file
Joey Hess [Fri, 11 Apr 2008 19:53:38 +0000 (15:53 -0400)]
set up signal handlers before creating temp file

Avoids a small race..

16 years agoanother round of whitespace fixes
Joey Hess [Fri, 11 Apr 2008 19:50:47 +0000 (15:50 -0400)]
another round of whitespace fixes

16 years agoremove debug
Brock Noland [Fri, 11 Apr 2008 19:22:39 +0000 (14:22 -0500)]
remove debug

Signed-off-by: Brock Noland <brockn@gmail.com>
16 years agosponge fixes
Brock Noland [Fri, 11 Apr 2008 18:16:09 +0000 (13:16 -0500)]
sponge fixes

*Fixed many bugs relating to renaming of temp file to output file
*Doesn't set umask, not sure what correct behavior is
*Does not try and delete /tmp/sponge.XXXXXX on exit if there was no temporary file used
*Uses temporary file when buffer * 2 is >= mem_available as the buffer will double shortly after this operation
*Only traps signals if we are creating a temporary file
*Cleaned up error messages

Signed-off-by: Brock Noland <brockn@gmail.com>
16 years agobetter usage message
Joey Hess [Fri, 11 Apr 2008 04:36:46 +0000 (00:36 -0400)]
better usage message

16 years agoupdate changelog
Joey Hess [Fri, 11 Apr 2008 04:35:24 +0000 (00:35 -0400)]
update changelog

16 years agoconvert to new format
Joey Hess [Fri, 11 Apr 2008 04:32:31 +0000 (00:32 -0400)]
convert to new format

16 years agofirst pass thru the code
Joey Hess [Fri, 11 Apr 2008 03:49:31 +0000 (23:49 -0400)]
first pass thru the code

Mostly limited to layout consistency changes, but I also moved a block of
code into a function, and removed a funky use of enum.

16 years agomake sponge use a temp file if the input is large
Joey Hess [Fri, 11 Apr 2008 03:28:15 +0000 (23:28 -0400)]
make sponge use a temp file if the input is large

patch from Brock Noland

16 years agosponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of...
Joey Hess [Thu, 10 Apr 2008 18:11:21 +0000 (14:11 -0400)]
sponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write().

16 years agosponge: Ensure that suspending/resuming doesn't result in partial writes of the data...
Joey Hess [Thu, 10 Apr 2008 18:05:25 +0000 (14:05 -0400)]
sponge: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write().

16 years agoAdd ifne, contributed by Javier Merino.
Joey Hess [Thu, 20 Mar 2008 16:57:08 +0000 (12:57 -0400)]
Add ifne, contributed by Javier Merino.

16 years agoMoreutils: Added ifne
Javier Merino [Thu, 20 Mar 2008 12:03:26 +0000 (13:03 +0100)]
Moreutils: Added ifne

Hi, I read the suggestion about ifne in the Discussion page of
moreutils and found it interesting. It's a command that runs another
process if the standard input is not empty. I think it can be very
useful in admin scripts so I've implemented it. I attach a patch
against the current head of moreutils' git. You may include it in
moreutils if you think it's worth it.

I've considered making an "ifempty" or "ifne -v" that would run a
command if the standard input is empty, but I'm not sure if that could
be useful. Any comments will be appreciated. Regards,

Javi

16 years agoreleasing version 0.28 0.28
Joey Hess [Sat, 2 Feb 2008 22:27:02 +0000 (17:27 -0500)]
releasing version 0.28

16 years ago* Add example to man page about recursive modification of directories.
Joey Hess [Sat, 2 Feb 2008 22:24:39 +0000 (17:24 -0500)]
* Add example to man page about recursive modification of directories.
Closes: #390099
16 years ago* vidir: Applied patch from Stefan Fritsch (one part of #412176):
Joey Hess [Sat, 2 Feb 2008 22:18:59 +0000 (17:18 -0500)]
* vidir: Applied patch from Stefan Fritsch (one part of #412176):
  - Check for control characters (especially newlines) in filenames
    and error out, since this can greatly confuse the editor or vidir.
  - If the source of a rename does not exist (and thus the rename will fail
    anyway), vidir should not move an existing target file to a tmpfile.
  - If a directory is renamed, vidir should take that into account when
    renaming files in this directory.
  - If a directory name is passed as name/ to vidir, vidir should not
    add second slash after the name.
* vidir: Add support for unlinking directories. To recursivly delete
  a directory and its contents, pipe find to vidir, and delete the directory
  and its contents in the editor. Closes: #412176

16 years ago* Moved to a git repository.
Joey Hess [Sat, 2 Feb 2008 22:03:34 +0000 (17:03 -0500)]
* Moved to a git repository.

16 years agoreleasing version 0.27 origin/origin 0.27
joeyh [Sat, 2 Feb 2008 21:44:09 +0000 (21:44 +0000)]
releasing version 0.27

16 years ago* vidir: Check exit codes of close. Closes: #463739
joeyh [Sat, 2 Feb 2008 21:42:22 +0000 (21:42 +0000)]
* vidir: Check exit codes of close. Closes: #463739

17 years agoreleasing version 0.26 0.26
joeyh [Wed, 28 Nov 2007 19:24:05 +0000 (19:24 +0000)]
releasing version 0.26

17 years ago* isutf8: Correct inverted exit code when passed a file to check.
joeyh [Wed, 28 Nov 2007 19:19:39 +0000 (19:19 +0000)]
* isutf8: Correct inverted exit code when passed a file to check.
Closes: #453306
17 years ago* isutf8: Detect and reject overlong UTF-8 sequences. Closes: #440951 0.25
joeyh [Mon, 12 Nov 2007 17:04:11 +0000 (17:04 +0000)]
* isutf8: Detect and reject overlong UTF-8 sequences. Closes: #440951
  Many thanks to liw for the patch.

17 years agoadd homepage field
joeyh [Tue, 6 Nov 2007 20:56:12 +0000 (20:56 +0000)]
add homepage field

17 years agoVcs- fields are now official
joeyh [Wed, 10 Oct 2007 22:31:20 +0000 (22:31 +0000)]
Vcs- fields are now official

17 years ago* vidir: Force numbers to normalised integers. 0.24
joeyh [Sun, 16 Sep 2007 17:06:14 +0000 (17:06 +0000)]
* vidir: Force numbers to normalised integers.
* vidir: Abort on unknown item numbers rather than deleting them.
Closes: #442440
17 years agoreleasing version 0.23 0.23
joeyh [Thu, 6 Sep 2007 01:54:45 +0000 (01:54 +0000)]
releasing version 0.23

17 years agoreformat
joeyh [Thu, 6 Sep 2007 01:45:04 +0000 (01:45 +0000)]
reformat

17 years ago* Don't strip binaries for debian package if built with
joeyh [Thu, 6 Sep 2007 01:28:28 +0000 (01:28 +0000)]
* Don't strip binaries for debian package if built with
  DEB_BUILD_OPTIONS=nostrip. Closes: #437577
* Include Michael Tokarev's lckdo program and replace / conflict with the
  current lckdo package. (Robert Edmonds) Closes: #432906
* lckdo: Don't clear other flags when setting close on exec.

17 years agofix repo path
joeyh [Mon, 13 Aug 2007 04:30:10 +0000 (04:30 +0000)]
fix repo path

17 years ago* Add pointer to join from combine's man page. Closes: #435516
joeyh [Wed, 1 Aug 2007 17:45:57 +0000 (17:45 +0000)]
* Add pointer to join from combine's man page. Closes: #435516

17 years agoreleasing version 0.22 0.22
joeyh [Mon, 25 Jun 2007 20:14:11 +0000 (20:14 +0000)]
releasing version 0.22

17 years ago* vidir, zrun: Don't put temp files in the current directory. Closes: #429367
joeyh [Mon, 25 Jun 2007 20:10:35 +0000 (20:10 +0000)]
* vidir, zrun: Don't put temp files in the current directory. Closes: #429367

17 years agoreleasing version 0.21 0.21
joeyh [Mon, 25 Jun 2007 17:08:46 +0000 (17:08 +0000)]
releasing version 0.21

17 years ago* Patch from Sergej Pupykin fixing ifdata -pN.
joeyh [Mon, 25 Jun 2007 17:06:51 +0000 (17:06 +0000)]
* Patch from Sergej Pupykin fixing ifdata -pN.

17 years agosort
joeyh [Sun, 24 Dec 2006 04:55:17 +0000 (04:55 +0000)]
sort

17 years agoreorder
joeyh [Sun, 24 Dec 2006 02:55:50 +0000 (02:55 +0000)]
reorder

17 years agoreleasing version 0.20 0.20
joeyh [Sat, 23 Dec 2006 20:58:47 +0000 (20:58 +0000)]
releasing version 0.20

18 years ago* Typo fixes from Ralf Wildenhues.
joeyh [Sun, 26 Nov 2006 19:49:18 +0000 (19:49 +0000)]
* Typo fixes from Ralf Wildenhues.

18 years agoreleasing version 0.19 0.19
joeyh [Sun, 12 Nov 2006 03:03:46 +0000 (03:03 +0000)]
releasing version 0.19

18 years agoadd XS-Vcs-Svn field
joeyh [Wed, 4 Oct 2006 17:26:48 +0000 (17:26 +0000)]
add XS-Vcs-Svn field

18 years agoreleasing version 0.18 0.18
joeyh [Thu, 14 Sep 2006 19:15:29 +0000 (19:15 +0000)]
releasing version 0.18

18 years ago* spongs: Output to stdout if no file is specified, useful in a pipeline
joeyh [Thu, 14 Sep 2006 19:13:26 +0000 (19:13 +0000)]
* spongs: Output to stdout if no file is specified, useful in a pipeline
  such as: cvs diff | sponge | patch -R -p0
Closes: #387501
18 years ago* mispipe.docbook: Typo. Closes: #386756
joeyh [Sat, 9 Sep 2006 22:47:07 +0000 (22:47 +0000)]
* mispipe.docbook: Typo. Closes: #386756

18 years agoreleasing version 0.17 0.17
joeyh [Fri, 8 Sep 2006 00:49:51 +0000 (00:49 +0000)]
releasing version 0.17

18 years ago* Add mispipe, contributed by Nathanael Nerode. Pipes together two commands,
joeyh [Fri, 8 Sep 2006 00:33:43 +0000 (00:33 +0000)]
* Add mispipe, contributed by Nathanael Nerode. Pipes together two commands,
  returning the exit status of the first.

18 years ago* Add missing \n to sponge usage. Closes: #383944
joeyh [Sun, 20 Aug 2006 22:37:20 +0000 (22:37 +0000)]
* Add missing \n to sponge usage. Closes: #383944

18 years agoreleasing version 0.16 0.16
joeyh [Sat, 19 Aug 2006 19:30:56 +0000 (19:30 +0000)]
releasing version 0.16

18 years agosupport lastlog format
joeyh [Sat, 19 Aug 2006 19:26:59 +0000 (19:26 +0000)]
support lastlog format

18 years ago* Change the default ts format to include the month and day, for consistency
joeyh [Fri, 18 Aug 2006 05:46:19 +0000 (05:46 +0000)]
* Change the default ts format to include the month and day, for consistency
  with syslog format.
* Add -r switch to ts, which makes it convert existing timestamps in
  the input into relative times, such as "15m2s ago".

18 years agoreleasing version 0.15 0.15
joeyh [Wed, 26 Jul 2006 02:51:02 +0000 (02:51 +0000)]
releasing version 0.15

18 years ago* vidir, vipe: Use /usr/bin/editor if it's present, and EDITOR and VISUAL
joeyh [Wed, 26 Jul 2006 02:46:50 +0000 (02:46 +0000)]
* vidir, vipe: Use /usr/bin/editor if it's present, and EDITOR and VISUAL
  arn't set, to comply with Debian policy. For portability, fall back to vi
  if there's no /usr/bin/editor. Closes: #378623

18 years ago* combine: Man page improvements, to clarify even more that order does
joeyh [Wed, 26 Jul 2006 02:40:28 +0000 (02:40 +0000)]
* combine: Man page improvements, to clarify even more that order does
  matter and that the operations are not commutative. Closes: #361123
* combine: The behavior of "or" was fairly strange if lines were repeated in
  a file. Changed behavior to just print all lines from both files, even
  if this means printing dups. Not sure I like this behavior either, but
  it's consistent with the very useful behaviors of "and" and "not".

18 years ago* vidir: Don't abort if it sees an empty or all-whitespace line.
joeyh [Thu, 13 Jul 2006 21:10:34 +0000 (21:10 +0000)]
* vidir: Don't abort if it sees an empty or all-whitespace line.
* vidir: If just a filename is removed and the number is left,
  treat this the same as removing the whole line, and delete the file,
  instead of trying to rename the file to "".
* vidir: Remove the periods after the item numbers.
* vidir: Man page improvements. Closes: #378122

18 years ago* Remove notes about potential tools from README, moved to wiki.
joeyh [Thu, 13 Jul 2006 16:22:44 +0000 (16:22 +0000)]
* Remove notes about potential tools from README, moved to wiki.

18 years agoreleasing version 0.14 0.14
joeyh [Wed, 12 Jul 2006 17:36:43 +0000 (17:36 +0000)]
releasing version 0.14

18 years agoreleasing version 0.13 0.13
joeyh [Wed, 12 Jul 2006 16:55:15 +0000 (16:55 +0000)]
releasing version 0.13

18 years ago* ifdata: typo
joeyh [Thu, 29 Jun 2006 16:02:21 +0000 (16:02 +0000)]
* ifdata: typo

18 years agoreleasing version 0.12 0.12
joeyh [Wed, 28 Jun 2006 18:05:19 +0000 (18:05 +0000)]
releasing version 0.12

18 years ago* ifdata: Fix bug in argument parsing that could make it segfault.
joeyh [Wed, 28 Jun 2006 18:04:23 +0000 (18:04 +0000)]
* ifdata: Fix bug in argument parsing that could make it segfault.
* combine: Allow operators to be written in any case.

18 years ago* zrun: Add usage message.
joeyh [Sun, 25 Jun 2006 02:12:31 +0000 (02:12 +0000)]
* zrun: Add usage message.

18 years ago* Really fix typo. Closes: #369485
joeyh [Tue, 30 May 2006 15:53:49 +0000 (15:53 +0000)]
* Really fix typo. Closes: #369485

18 years agoreleasing version 0.11 0.11
joeyh [Sat, 27 May 2006 23:18:29 +0000 (23:18 +0000)]
releasing version 0.11

18 years agoreleasing version 0.10 0.10
joeyh [Sun, 2 Apr 2006 22:47:56 +0000 (22:47 +0000)]
releasing version 0.10

18 years ago* ifdata: patch from Adam Lackorzynski to translate French error messages
joeyh [Sun, 2 Apr 2006 22:32:24 +0000 (22:32 +0000)]
* ifdata: patch from Adam Lackorzynski to translate French error messages
  to English and to convert some #defines to enums.
* ifdata: patch from Adam Lackorzynski to avoid printing info for
  bogus interface. Closes: #360433
* Add zrun, contributed by Chung-chieh Shan (you might prefer to alias it to
  "z").

18 years agoreleasing version 0.9 0.9
joeyh [Mon, 27 Mar 2006 18:48:20 +0000 (18:48 +0000)]
releasing version 0.9

18 years ago* Typo fixes. Closes: #359039, #359040
joeyh [Mon, 27 Mar 2006 18:45:08 +0000 (18:45 +0000)]
* Typo fixes. Closes: #359039, #359040
* pee: don't send a copy of every line sent to every command to stdout.
  Seems best for it not to output anything to stdout on its on at all.
Closes: #359041
18 years ago* ifdata: robustness patch from Adam Lackorzynski, in particular deal with
joeyh [Sat, 25 Mar 2006 17:52:25 +0000 (17:52 +0000)]
* ifdata: robustness patch from Adam Lackorzynski, in particular deal with
  /proc not mounted. Closes: #358930

18 years agoreleasing version 0.8 0.8
joeyh [Sat, 25 Mar 2006 02:01:45 +0000 (02:01 +0000)]
releasing version 0.8

18 years ago* ifdata: patch from its author to make it behave properly on big endian
joeyh [Sat, 25 Mar 2006 01:51:39 +0000 (01:51 +0000)]
* ifdata: patch from its author to make it behave properly on big endian
  systems. Closes: #358860

18 years ago* tss.1, ifdata.1: typo fix. Closes: #358557, #358556
joeyh [Thu, 23 Mar 2006 08:47:52 +0000 (08:47 +0000)]
* tss.1, ifdata.1: typo fix. Closes: #358557, #358556

18 years ago* Back to Mithandir's C sponge, now fixed.
joeyh [Thu, 23 Mar 2006 07:18:36 +0000 (07:18 +0000)]
* Back to Mithandir's C sponge, now fixed.

18 years ago* ifdata: Patch from KELEMEN Peter to add support for printing hardware 0.7
joeyh [Sat, 18 Mar 2006 19:17:43 +0000 (19:17 +0000)]
* ifdata: Patch from KELEMEN Peter to add support for printing hardware
  interface. Closes: #357646

18 years agoer yeah, let's check in the right stuff
joeyh [Thu, 16 Mar 2006 17:08:29 +0000 (17:08 +0000)]
er yeah, let's check in the right stuff

18 years ago* Add pee (pipe tee) contributed by Miek Gieben.
joeyh [Tue, 14 Mar 2006 23:08:19 +0000 (23:08 +0000)]
* Add pee (pipe tee) contributed by Miek Gieben.

18 years agoreleasing version 0.6 0.6
joeyh [Mon, 13 Mar 2006 17:06:37 +0000 (17:06 +0000)]
releasing version 0.6

18 years agotypo
joeyh [Fri, 10 Mar 2006 20:26:29 +0000 (20:26 +0000)]
typo

18 years agoreleasing version 0.5 0.5
joeyh [Wed, 8 Mar 2006 04:09:50 +0000 (04:09 +0000)]
releasing version 0.5

18 years ago* Replaced and(1) and not(1) by combine, based on an idea by Matt Taggart.
joeyh [Wed, 8 Mar 2006 04:04:34 +0000 (04:04 +0000)]
* Replaced and(1) and not(1) by combine, based on an idea by Matt Taggart.

18 years ago* README updates based on user feedback.
joeyh [Wed, 8 Mar 2006 03:25:58 +0000 (03:25 +0000)]
* README updates based on user feedback.

18 years ago* Indentation improvements.
joeyh [Wed, 8 Mar 2006 03:19:40 +0000 (03:19 +0000)]
* Indentation improvements.

18 years agorename
joeyh [Wed, 8 Mar 2006 03:03:37 +0000 (03:03 +0000)]
rename

18 years ago* Added ifinfo, by Benjamin BAYART (originally called ifcfg).
joeyh [Wed, 8 Mar 2006 02:59:27 +0000 (02:59 +0000)]
* Added ifinfo, by Benjamin BAYART (originally called ifcfg).
* Made ifinfo -Wall clean.
* Made ifinfo support -h and print usage on unknown options.
* Cleaned up ifinfo's behavior when asked to print info for nonexistant
  devices. Still needs improvement.

18 years agoreleasing version 0.4 0.4
joeyh [Mon, 6 Mar 2006 03:33:23 +0000 (03:33 +0000)]
releasing version 0.4

18 years agoreleasing version 0.3 0.3
joeyh [Fri, 3 Mar 2006 23:20:51 +0000 (23:20 +0000)]
releasing version 0.3

18 years agobetter
joeyh [Fri, 3 Mar 2006 22:38:51 +0000 (22:38 +0000)]
better

18 years ago* Switch sponge to a C implementation by mithandir.
joeyh [Fri, 3 Mar 2006 22:26:20 +0000 (22:26 +0000)]
* Switch sponge to a C implementation by mithandir.
* Build dep on docbook-xml.

18 years agoreleasing version 0.1 0.1
joeyh [Sun, 19 Feb 2006 20:33:18 +0000 (20:33 +0000)]
releasing version 0.1

18 years agoupdate
joeyh [Sun, 19 Feb 2006 19:39:42 +0000 (19:39 +0000)]
update

18 years agoadd
joeyh [Sun, 19 Feb 2006 19:18:31 +0000 (19:18 +0000)]
add

18 years agoadd
joeyh [Sun, 19 Feb 2006 18:40:49 +0000 (18:40 +0000)]
add