Paul Eggert
f89674dc6f
nohup now ignores the umask when creating nohup.out.
...
nohup now closes stderr if it is a terminal and stdout is closed.
2005-03-19 00:46:47 +00:00
Paul Eggert
435f4c081f
* coreutils.texi (nohup invocation): Clarify nohup.out creation.
2005-03-19 00:46:29 +00:00
Paul Eggert
f57d67630f
(nohup invocation): Clarify nohup.out creation.
2005-03-19 00:46:16 +00:00
Paul Eggert
c8f3dc402b
(main): nohup now ignores the umask when creating nohup.out.
...
nohup now closes stderr if it is a terminal and stdout is closed.
Be a little more paranoid about return values;
e.g., check for any negative return from open.
Assume free (NULL) works.
Close file descriptor leak when redirecting standard output to a file.
2005-03-19 00:45:48 +00:00
Paul Eggert
319ebff684
nohup now ignores the umask when creating nohup.out.
...
nohup now closes stderr if it is a terminal and stdout is closed.
2005-03-19 00:45:08 +00:00
Jim Meyering
0ef98b62fb
comment tweak
2005-03-18 09:38:31 +00:00
Jim Meyering
500175daed
Add comments for new macros.
2005-03-18 09:37:54 +00:00
Jim Meyering
aa450da526
fix typo
2005-03-18 06:51:40 +00:00
Jim Meyering
78929b11ca
tweak comment
2005-03-17 20:50:50 +00:00
Jim Meyering
9001fbc0fd
*** empty log message ***
2005-03-17 19:02:06 +00:00
Jim Meyering
e3a6890029
(gl_PREREQ): Require gl_TYPEOF.
2005-03-17 19:01:39 +00:00
Jim Meyering
9b9bda0ccf
(gl_TYPEOF): New file/macro.
2005-03-17 19:01:15 +00:00
Jim Meyering
4ef7ce47dc
Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,
...
since so many other C compilers also honor __typeof__.
2005-03-17 19:00:52 +00:00
Jim Meyering
e778babb00
spacing nit
2005-03-17 18:08:46 +00:00
Jim Meyering
cc391abad8
Fix typo.
2005-03-17 17:43:54 +00:00
Jim Meyering
6b0f94088c
(DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional.
2005-03-17 17:42:53 +00:00
Jim Meyering
b0a3db0a2f
*** empty log message ***
2005-03-17 17:38:28 +00:00
Jim Meyering
308dd0d98c
*** empty log message ***
2005-03-17 15:34:53 +00:00
Jim Meyering
9e1e48f018
(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.
2005-03-17 15:33:50 +00:00
Jim Meyering
f864f6df1c
(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
...
place of nearly-equivalent code.
2005-03-17 15:32:53 +00:00
Jim Meyering
3bf5718c30
(main): Use DECIMAL_DIGIT_ACCUMULATE macro in place of nearly-equivalent code.
2005-03-17 15:32:10 +00:00
Jim Meyering
b90c3e4609
(parse_tab_stops, main): Use DECIMAL_DIGIT_ACCUMULATE macro in
...
place of nearly-equivalent code.
2005-03-17 15:30:00 +00:00
Jim Meyering
183cba6524
(set_fields): Use DECIMAL_DIGIT_ACCUMULATE macro in
...
place of nearly-equivalent code.
2005-03-17 14:35:42 +00:00
Jim Meyering
a26f414348
Use VERIFY macro in place of an equivalent open-coded declaration.
2005-03-17 14:34:23 +00:00
Jim Meyering
c74255c9b6
(VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros.
2005-03-17 14:33:39 +00:00
Jim Meyering
cee4fe1969
Before, this command would make uniq skip 11 fields and print
...
only the first line.
$ _POSIX2_VERSION=1 ./uniq -f1 -1 <(seq --format='1 %g' 2)
1 1
1 2
(main): Interpret `uniq -f1 -1' like `uniq -f1', not like `uniq -f11'.
2005-03-17 14:27:12 +00:00
Paul Eggert
581b437d32
* strftime.c (my_strftime): Prepend space to format.
2005-03-16 01:01:36 +00:00
Paul Eggert
23f7577282
(my_strftime): Prepend space to format so that we can
...
reliably distinguish strftime failure from empty output on POSIX
hosts.
2005-03-16 01:01:23 +00:00
Jim Meyering
331efbd2db
.
2005-03-15 19:24:19 +00:00
Jim Meyering
2ecd300ec3
.
2005-03-15 18:10:50 +00:00
Jim Meyering
48d98ea22a
*** empty log message ***
2005-03-15 18:10:26 +00:00
Jim Meyering
fd304f1e0e
Both pr -0' and e.g., pr -03' would evoke `column count too large'.
...
`pr -0' should give a better diagnostic and `pr -03' should be
equivalent to `pr -3'.
(parse_column_count): Change return type to void.
Call error (EXIT_FAILURE, ... for an invalid string.
(main): Allocate space for column_count_string using malloc.
Accumulate all old-style column-count digits before converting.
When the number of columns is specified via both old-style,
(e.g., -3), and a long option (--columns=5), ensure that only
the last one specified takes effect.
Add tests for the above.
2005-03-15 18:09:05 +00:00
Jim Meyering
6d9f816b5c
Both pr -0' and e.g., pr -03' evoke `column count too large'.
...
`pr -0' should give a better diagnostic and `pr -03' should be
equivalent to `pr -3'.
(parse_column_count): Change return type to void.
Call error (EXIT_FAILURE, ... for an invalid string.
(main): Allocate space for column_count_string using malloc.
Accumulate all old-style column-count digits before converting.
When the number of columns is specified via both old-style,
(e.g., -3), and a long option (--columns=5), ensure that only
the last one specified takes effect.
2005-03-15 18:05:13 +00:00
Jim Meyering
e2938a5d84
*** empty log message ***
2005-03-15 15:39:46 +00:00
Jim Meyering
d583b1ce69
(copy_reg): Copy regular files in binary mode.
2005-03-15 15:39:40 +00:00
Paul Eggert
f7e5bc2908
Fix comments and indenting.
2005-03-15 00:44:29 +00:00
Paul Eggert
53d430be4e
Sync mktime.c and strtol.c macros from intprops.h.
2005-03-15 00:40:17 +00:00
Paul Eggert
2f82566ff2
* strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
...
&& HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[].
2005-03-14 23:23:25 +00:00
Paul Eggert
b6f7c33a38
* NEWS: Restate why ls limits time stamp lengths.
2005-03-14 18:38:05 +00:00
Paul Eggert
b3021f1d18
Reword ls time-stamp limit issue.
2005-03-14 18:36:31 +00:00
Jim Meyering
fed6d86b5d
*** empty log message ***
2005-03-12 16:24:13 +00:00
Jim Meyering
9894d59925
*** empty log message ***
2005-03-12 10:59:38 +00:00
Jim Meyering
e1ba36b607
Add a little infrastructure to help prevent future bugs like the
...
one fixed today.
(xstrcat): New function.
(print_statfs, print_stat): Add buf_len parameter and convert all
uses of strcat to xstrcat. Update callers.
(print_it): Call print_func with buf_len parameter.
2005-03-12 10:59:23 +00:00
Jim Meyering
d9d9836223
Invoking stat -c FMT with a lone format directive of %s, %f, %h, %s,
...
could cause a buffer overrun error.
(print_it): Allocate 2 more bytes, to accommodate our
conversion of the stat %s format string to the longer printf %llu one.
Patch from Guochun Shi.
2005-03-12 10:54:20 +00:00
Jim Meyering
2c84165280
*** empty log message ***
2005-03-12 10:51:06 +00:00
Paul Eggert
cc887eac73
"ls" now refuses to generate very long time stamps.
2005-03-11 23:14:31 +00:00
Paul Eggert
9d55554bf1
ls now refuses to generate time stamps containing more than 1000 bytes.
2005-03-11 23:13:58 +00:00
Paul Eggert
1aab3a0c90
* coreutils.texi (Formatting file timestamps): Very long timestamps
...
may be treated as errors.
2005-03-11 23:13:37 +00:00
Paul Eggert
8e80be2356
(Formatting file timestamps): Very long timestamps
...
may be treated as errors.
2005-03-11 23:13:19 +00:00
Paul Eggert
e8024715d7
(TIME_STAMP_LEN_MAXIMUM): New constant.
...
(long_time_expected_width, print_long_format): Use it, to avoid
some possible denial-of-service attacks.
2005-03-11 23:12:43 +00:00