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)
set umask before calling mkstemp 0595609018095dabd5d1a56cf03ddcc008a9e928 Joey Hess 2008-04-11 21:47:28
update physmem copyright 30746c4357c0ac6110ca7e2a279ce9e82e879581 Joey Hess 2008-04-11 21:44:19
fix two bugs writing the output file 6fa7d9907e7211f06656b296940aaca1d6b4d1df Joey Hess 2008-04-11 21:42:38
move code into a function dcb580b3998a19b112004f23298490a34af59fc8 Joey Hess 2008-04-11 20:15:29
fix edge cases ee4e74dd6a20706f29ef30a2613a1977f6f325fa Joey Hess 2008-04-11 20:10:18
reorder defines 0bf88ea14cda6e6e57e97356862628ae49269c8a Joey Hess 2008-04-11 19:54:30
set up signal handlers before creating temp file 0ff304e2ca860e51e75bbfc08290e364e94cb32e Joey Hess 2008-04-11 19:53:38
another round of whitespace fixes c391b00d2837d1571ac1d361551378adf19ae83f Joey Hess 2008-04-11 19:50:47
remove debug 919ce1f7b6d80dfdc3c613f898215962985f9c66 Brock Noland 2008-04-11 19:22:39
sponge fixes 42c5c5a799502743307b392bf9e7c0205ef85ace Brock Noland 2008-04-11 18:16:09
better usage message 73327f97a62619cb8b1a0bc03e5e105839449f9a Joey Hess 2008-04-11 04:36:46
update changelog 79c6fe1242a4747c4adbcc9030d2cadc61c1028a Joey Hess 2008-04-11 04:35:24
convert to new format 2c8be0fef4c247de0e5511abdbda25e3611b9f8c Joey Hess 2008-04-11 04:32:31
first pass thru the code b2174f2df2410bf82fe646bcedd333ddbd7dbf66 Joey Hess 2008-04-11 03:49:31
make sponge use a temp file if the input is large 866dfb32b3ba7d0be153608b28dd9f461986251d Joey Hess 2008-04-11 03:28:15
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
Commit 0595609018095dabd5d1a56cf03ddcc008a9e928 - set umask before calling mkstemp
This is a POSIX portability thing.

Restore the original umask after.
Author: Joey Hess
Author date (UTC): 2008-04-11 21:47
Committer name: Joey Hess
Committer date (UTC): 2008-04-11 21:47
Parent(s): 30746c4357c0ac6110ca7e2a279ce9e82e879581
Signer:
Signing key:
Signing status: N
Tree: 05e685b1589000c0ec51a88b912a6580c5426cd2
File Lines added Lines deleted
sponge.c 3 1
File sponge.c changed (mode: 100644) (index d232b5d..dcd4aba)
... ... static void copy_tmpfile(FILE *tmpfile, FILE *outfd) {
219 219 } }
220 220
221 221 FILE *open_tmpfile(void) { FILE *open_tmpfile(void) {
222 /* umask(077); FIXME: Should we be setting umask, or using default? */
223 222 struct cs_status cs; struct cs_status cs;
224 223 int tmpfd; int tmpfd;
225 224 FILE *tmpfile; FILE *tmpfile;
225 mode_t mask;
226 226
227 227 trapsignals(); trapsignals();
228 228 cs = cs_enter(); cs = cs_enter();
229 mask=umask(077);
229 230 tmpfd = mkstemp(tmpname); tmpfd = mkstemp(tmpname);
231 umask(mask);
230 232 atexit(onexit_cleanup); // solaris on_exit(onexit_cleanup, 0); atexit(onexit_cleanup); // solaris on_exit(onexit_cleanup, 0);
231 233 cs_leave(cs); cs_leave(cs);
232 234 if (tmpfd < 0) { if (tmpfd < 0) {
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