nicolas / debian.moreutils (public) (License: GPL-2, GPL-2+, Expat, BSD-2-Clause, Public Domain) (since 2018-09-25) (hash sha1)
Debian packaging of joeyh's moreutils
List of commits:
Subject Hash Author Date (UTC)
sponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write(). ddcbf562e3b6bb3a4441cc640c756127be4cf26b Joey Hess 2008-04-10 18:11:21
sponge: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write(). 71349b5ae83878f4e59fc6517976998150856933 Joey Hess 2008-04-10 18:05:25
Add ifne, contributed by Javier Merino. 2fbf7a9636fae8012298901e98e63cc1b32745ee Joey Hess 2008-03-20 16:57:08
Moreutils: Added ifne 752a84ae61dd1c37dec9a1cb0d30e8c27db1994a Javier Merino 2008-03-20 12:03:26
releasing version 0.28 33a313d03913e33ca8b8803caeb70baa8486ce32 Joey Hess 2008-02-02 22:27:02
* Add example to man page about recursive modification of directories. Closes: #390099 a3627335c84246278d940b250c7d4c61df7595c3 Joey Hess 2008-02-02 22:24:39
* 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 bc053c5868a14bd166160ffd2b143dd47622aba5 Joey Hess 2008-02-02 22:18:59
* Moved to a git repository. 6c5feb7e384bcf7bae50ccfbefff2db9f03de35c Joey Hess 2008-02-02 22:03:34
releasing version 0.27 7d606d7c155c331eff7601476cbf7ba48e6dc49b joeyh 2008-02-02 21:44:09
* vidir: Check exit codes of close. Closes: #463739 8437ce241dda9004cd87b0d46ce6e7ff197fc927 joeyh 2008-02-02 21:42:22
releasing version 0.26 36f9ddc3d3d521a1568685d2882ea892fda51593 joeyh 2007-11-28 19:24:05
* isutf8: Correct inverted exit code when passed a file to check. Closes: #453306 a7b6e16281c45aa91395a8dcdaa623d6bce69bab joeyh 2007-11-28 19:19:39
* isutf8: Detect and reject overlong UTF-8 sequences. Closes: #440951 Many thanks to liw for the patch. 97bbfc9b4a3f995776e5229bbfd8214282308b77 joeyh 2007-11-12 17:04:11
add homepage field f955b3741c6fa10ad3c326257462ba39b2dd444e joeyh 2007-11-06 20:56:12
Vcs- fields are now official 90818d6e7a8ed725142aa5ecdbacdc0a9ecdfe50 joeyh 2007-10-10 22:31:20
* vidir: Force numbers to normalised integers. * vidir: Abort on unknown item numbers rather than deleting them. Closes: #442440 4a0cb2806a75ca4a36472835fcbe0f41085902b2 joeyh 2007-09-16 17:06:14
releasing version 0.23 cade3b932e3fc6f2fdc576a6ef0e061cf49a6653 joeyh 2007-09-06 01:54:45
reformat 6512dfbce4cf15b27db1849b02493776aa07941e joeyh 2007-09-06 01:45:04
* 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. 70564cb95575300bd77dd8035f2d010e9030de4c joeyh 2007-09-06 01:28:28
fix repo path 2025c9c518e7165da3d08b28bb7d62682d2f3b1f joeyh 2007-08-13 04:30:10
Commit ddcbf562e3b6bb3a4441cc640c756127be4cf26b - sponge, ifne: Ensure that suspending/resuming doesn't result in partial writes of the data, by using fwrite() rather than write().
Author: Joey Hess
Author date (UTC): 2008-04-10 18:11
Committer name: Joey Hess
Committer date (UTC): 2008-04-10 18:11
Parent(s): 71349b5ae83878f4e59fc6517976998150856933
Signing key:
Tree: a13e693d1c005cc04c9ea4619437ee7b365d6804
File Lines added Lines deleted
debian/changelog 3 2
ifne.c 10 6
File debian/changelog changed (mode: 100644) (index e3424ed..ba8a707)
1 1 moreutils (0.29) UNRELEASED; urgency=low moreutils (0.29) UNRELEASED; urgency=low
2 2
3 3 * Add ifne, contributed by Javier Merino. * Add ifne, contributed by Javier Merino.
4 * sponge: Ensure that suspending/resuming doesn't result in partial writes
5 of the data, by using fwrite() rather than write().
4 * sponge, ifne: Ensure that suspending/resuming doesn't
5 result in partial writes of the data, by using fwrite()
6 rather than write().
6 7
7 8 -- Joey Hess <joeyh@debian.org> Thu, 20 Mar 2008 12:56:42 -0400 -- Joey Hess <joeyh@debian.org> Thu, 20 Mar 2008 12:56:42 -0400
8 9
File ifne.c changed (mode: 100644) (index 9af19fa..817b1c5)
1
2 1 /* /*
3 2 * *
4 3 * Copyright 2008 Javier Merino <cibervicho@gmail.com> * Copyright 2008 Javier Merino <cibervicho@gmail.com>
 
... ... int main(int argc, char **argv) {
30 29 int child_status; int child_status;
31 30 pid_t child_pid; pid_t child_pid;
32 31 char buf[BUFSIZ]; char buf[BUFSIZ];
32 FILE *outf;
33 33
34 34 if (argc < 2) { if (argc < 2) {
35 35 /* Noop */ /* Noop */
 
... ... int main(int argc, char **argv) {
68 68 return EXIT_FAILURE; return EXIT_FAILURE;
69 69 } }
70 70
71 /* Parent: write in fds[1] our stdin */
71 /* Parent: write stdin to fds[1] */
72 72 close(fds[0]); close(fds[0]);
73
73 outf = fdopen(fds[1], "w");
74 if (! outf) {
75 perror("fdopen");
76 exit(1);
77 }
74 78 do { do {
75 if (write(fds[1], buf, r*sizeof(char)) == -1) {
79 if (fwrite(buf, r*sizeof(char), 1, outf) < 1) {
76 80 fprintf(stderr, "Write error to %s\n", argv[1]); fprintf(stderr, "Write error to %s\n", argv[1]);
77 81 exit(EXIT_FAILURE); exit(EXIT_FAILURE);
78 82 } }
 
... ... int main(int argc, char **argv) {
82 86 perror("read"); perror("read");
83 87 exit(EXIT_FAILURE); exit(EXIT_FAILURE);
84 88 } }
85
86 close(fds[1]);
89 fclose(outf);
90
87 91 if (waitpid(child_pid, &child_status, 0) != child_pid) { if (waitpid(child_pid, &child_status, 0) != child_pid) {
88 92 perror("waitpid"); perror("waitpid");
89 93 return EXIT_FAILURE; return EXIT_FAILURE;
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using git:
git clone git://git.rocketgit.com/user/nicolas/debian.moreutils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main