Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* zrun: Can be linked to zsomeprog to run the equivilant of zrun someprog.
Closes: #411623 (Stefan Fritsch)
* zrun: Add support for lzma and lzo. (Stefan Fritsch)
|
|
|
|
|
|
specification. Closes: #482789
|
|
|
|
|
|
|
|
With -n, ifne runs the command if the standard input is empty and does
nothing otherwise.
|
|
|
|
|
|
(or push out the reversion, oops.. too late)
|
|
This reverts commit 83e8da32e5d3154f1c97e6eb62c30450ff95b5af.
|
|
Hi,
I just packaged up moreutils for Gentoo and added it to their system,
I'll go add it to the SuSE repo system next week as well, thanks a lot
for the utils.
Here's a small patch to the makefile to make it easier for distros to
change the docbook2x-man binary as it is named other things (Gentoo for
example has it as docbook2man.pl). This way it can be changed on the
build line, and the Makefile doesn't have to be patched.
Thanks for already fixing the DESTDIR thing, that also will make things
easier.
And also, you mention dropping you an email if you want to be notified
when new versions come out, I'd appreciate it if you could add me to
that list if you have one.
thanks again,
greg k-h
--------------------
Subject: Make docbook2x-man able to be overridden in Makefile
This makes it easier for distros that do not have the docbook2x-man
binary with that name, override it on the command line instead of having
to patch the Makefile.
|
|
Use DESTDIR instead of PREFIX.
|
|
|
|
* ts: Allow both -r and a format to be specified, to parse dates and output
in a specified format.
* ts: Fix bug in timezone regexp.
|
|
|
|
|
|
|
|
Reuse the buffer and copy in chunks that are the full buffer size.
|
|
Avoid overwriting symlinks with the temp file.
When renaming the temp file, restore the original file's permissions after.
|
|
This is a POSIX portability thing.
Restore the original umask after.
|
|
The file was earlier changed to the older, GPL 2 version.
|
|
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.
|
|
|
|
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.
|
|
|
|
Avoids a small race..
|
|
|
|
Signed-off-by: Brock Noland <brockn@gmail.com>
|
|
*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>
|
|
|
|
|
|
|
|
Mostly limited to layout consistency changes, but I also moved a block of
code into a function, and removed a funky use of enum.
|
|
patch from Brock Noland
|
|
writes of the data, by using fwrite() rather than write().
|
|
the data, by using fwrite() rather than write().
|
|
|
|
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
|
|
|
|
Closes: #390099
|
|
- 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
|