Jim Meyering
0ffc4a7d84
[HAVE_CONFIG_H]: Include <config.h>.
2005-09-27 08:58:55 +00:00
Jim Meyering
52e05089cc
[HAVE_CONFIG_H]: Include <config.h> conditionally,
...
to be consistent with gnulib.
2005-09-27 08:44:07 +00:00
Jim Meyering
3cf3a44bbd
Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef HAVE_CONFIG_H.
2005-09-27 08:33:47 +00:00
Jim Meyering
9346282a5d
*** empty log message ***
2005-09-27 08:21:35 +00:00
Jim Meyering
2d7c20c891
Include <config.h> here, now that strnumcmp-in.h no longer includes it.
2005-09-27 08:21:28 +00:00
Jim Meyering
e247f4874c
*** empty log message ***
2005-09-27 06:56:44 +00:00
Paul Eggert
b115bf4d44
Test "touch -" too, and change "touch -c - >&-" so that it does not
...
report an error, since that's more logical.
2005-09-26 23:03:53 +00:00
Paul Eggert
4b2dd7730a
Test "touch -" too.
2005-09-26 23:02:34 +00:00
Paul Eggert
2f897e7258
(touch): Handle "touch -c - >&-" by checking for EBADF
...
and ENOSYS.
Do not pass "-" to futimens; pass NULL instead.
If close (STDIN_FILENO) fails, report the error separately instead
of letting the 'close' pollute errno.
2005-09-26 23:02:14 +00:00
Paul Eggert
80065b498b
utimens.c portability fixes.
2005-09-26 23:01:25 +00:00
Paul Eggert
a6c8a8e6d4
Include unistd.h, for dup2.
...
(futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
(futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
2005-09-26 23:01:00 +00:00
Jim Meyering
a49740f33b
*** empty log message ***
2005-09-26 09:10:54 +00:00
Jim Meyering
99fa7a0e8e
(gl_FUNC_UTIMES): Detect the version of utimes
...
from glibc-2.2.5 that fails for read-only files.
2005-09-26 09:10:50 +00:00
Jim Meyering
8149b5a566
.
2005-09-26 07:34:41 +00:00
Jim Meyering
43bdd9709a
*** empty log message ***
2005-09-26 07:33:53 +00:00
Jim Meyering
7019fe1a9a
*** empty log message ***
2005-09-26 07:32:14 +00:00
Jim Meyering
e3ce1ce8f7
(TESTS): Add read-only.
2005-09-26 07:32:08 +00:00
Jim Meyering
8507dc0375
New test, for root of chmod/usage failure.
2005-09-26 07:31:57 +00:00
Jim Meyering
012c33d39c
*** empty log message ***
2005-09-26 07:25:29 +00:00
Jim Meyering
6540422861
Work around the root cause of alpha-linux-1.sf.net test failure.
...
Remove all files in inner loop.
Otherwise, with a touch program that fails on unwritable files,
(this happens at least on linux-2.2.20) a -w file left behind
from a previous iteration could cause a spurious test failure.
2005-09-26 07:25:23 +00:00
Jim Meyering
c5e9d78786
Undo the s/files/file/ change, but add
...
comments about why the old version was desired.
2005-09-26 07:20:22 +00:00
Jim Meyering
31b44eef6e
*** empty log message ***
2005-09-25 20:46:34 +00:00
Jim Meyering
b1e97405b2
(setuid-etc): Work around output mismatch when
...
a just-created test file cannot be made set-group-ID.
2005-09-25 20:46:30 +00:00
Jim Meyering
2c5def0462
.
2005-09-25 17:01:54 +00:00
Jim Meyering
0e5662fd54
.
2005-09-25 12:54:04 +00:00
Jim Meyering
3d9687a4e0
*** empty log message ***
2005-09-25 09:59:30 +00:00
Jim Meyering
e080496968
*** empty log message ***
2005-09-25 09:59:23 +00:00
Jim Meyering
4f8eb86b55
*** empty log message ***
2005-09-25 09:58:04 +00:00
Jim Meyering
ae296eb195
Use newer trap and tmpdir-creation framework.
...
Fix apparent typos (s/files/file/) in inner loop.
2005-09-25 09:58:00 +00:00
Jim Meyering
23b9299247
Protect against multiple inclusion.
2005-09-25 06:14:33 +00:00
Paul Eggert
e3513e1895
(touch): "touch -" now touches standard output.
...
(usage): Document this.
2005-09-25 06:12:21 +00:00
Paul Eggert
17ccbf8844
"touch -" now touches standard output.
2005-09-25 06:11:45 +00:00
Paul Eggert
124cc0e9e6
"touch -" now touches standard output.
2005-09-25 06:09:51 +00:00
Paul Eggert
7ee48d8ffb
Support having a null PATH if the file descriptor is nonnegative.
2005-09-25 06:09:22 +00:00
Paul Eggert
4f001e7a13
(ENOSYS): Define if not already defined.
...
(ftimens): Support having a null PATH if the file descriptor
is nonnegative.
2005-09-25 06:08:45 +00:00
Paul Eggert
add931ac28
(touch invocation): "touch -" now touches standard output.
2005-09-25 06:08:17 +00:00
Paul Eggert
4f688f0b3f
"touch -" now touches standard output.
2005-09-25 06:07:48 +00:00
Paul Eggert
443ddc13e6
Upgrade regex_internal.h patch.
2005-09-25 04:18:54 +00:00
Paul Eggert
793ffcaac0
(__GNUC_PREREQ, always_inline, inline, pure):
...
Remove.
(__attribute): Define to empty unless GCC 3.1 or later.
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()). It also
simplifies other tests, since we really don't want to bother with
worrying about which ancient version of GCC supported what.
Original problem reported by Yoann Vandoorselaere, with part of
the fix suggested by Derek Price.
2005-09-25 04:18:39 +00:00
Paul Eggert
1e32f96bf2
Prefer fchown to chown and fchmod to chmod when copying regular files.
2005-09-25 03:08:40 +00:00
Paul Eggert
aa5f98288a
* jm-macros.m4 (gl_MACROS): Check for fchmod and fchown.
2005-09-25 03:08:15 +00:00
Paul Eggert
33247c7169
(gl_MACROS): Check for fchmod and fchown.
2005-09-25 03:07:53 +00:00
Paul Eggert
7fc308db7e
(HAVE_FCHMOD, HAVE_FCHOWN): Define to 0 if not defined.
...
(copy_reg): New args CHOWN_SUCCEDED and DST_SB. All callers changed.
Add a "goto close_src_and_dst_desc;" that was missing in the
previous patch.
(copy_reg) [HAVE_FCHOWN]: Prefer fchown to chown.
(copy_reg) [HAVE_FCHMOD]: Prefer fchmod to chmod.
(copy_internal): Don't invoke chown if fchown worked,
and likewise for chmod and fchmod.
2005-09-25 03:07:33 +00:00
Paul Eggert
545dd954d9
* Makefile.am (libcoreutils_a_SOURCES): Remove mbchar.c.
2005-09-24 23:14:21 +00:00
Paul Eggert
944e020290
(libcoreutils_a_SOURCES): Remove mbchar.c, since
...
it doesn't build in OpenBSD 3.4. See
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00242.html >.
2005-09-24 23:14:04 +00:00
Paul Eggert
6c3d9ae4c4
* mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h.
2005-09-24 23:13:42 +00:00
Paul Eggert
a9d12230c8
(gl_MBCHAR): Check for wchar.h and wctype.h, and
...
don't compile mbchar.c unless both headers exist. See
<http://lists.gnu.org/archive/html/bug-gnulib/2005-09/msg00242.html >.
2005-09-24 23:13:19 +00:00
Paul Eggert
fd02208ad2
* regex_internal.h (__attribute): Define to nothing for GCC 2.
2005-09-24 22:59:22 +00:00
Paul Eggert
5a29d2d430
(__attribute): Define to nothing for GCC 2.
...
This works around a core dump on OpenBSD 3.4, which has GCC
2.95.3, which dumps core when given __attribute__(()).
2005-09-24 22:59:06 +00:00
Jim Meyering
ed3a66aa5e
.
2005-09-24 13:42:39 +00:00