Jim Meyering
e5b0d0aa85
.
2006-08-15 12:05:34 +00:00
Jim Meyering
a0fcf62767
commit, for the record. May never be used.
2006-08-15 11:08:03 +00:00
Paul Eggert
1a00d99c2f
(memcoll): Optimize for the common case where the
...
arguments are bytewise equal.
2006-08-14 16:20:49 +00:00
Paul Eggert
3244e9a493
* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
...
HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
2006-08-11 20:28:42 +00:00
Paul Eggert
ba79117e35
(re_string_skip_chars): Don't assume WEOF fits in wchar_t.
2006-08-11 18:29:06 +00:00
Paul Eggert
0154d1876b
Fix typo in previous checkin: len -> lenbuf.
2006-08-11 17:47:40 +00:00
Paul Eggert
78bc0d8366
(snprintf): memcpy LEN bytes, not SIZE - 1, when
...
LEN is smaller than SIZE. Suggested by Bruno Haible.
Also, help the compiler to keep LEN in a register.
2006-08-11 17:41:11 +00:00
Paul Eggert
4a16cc52e0
Import regex changes from libc via gnulib.
2006-08-10 20:49:28 +00:00
Paul Eggert
9afbf11b76
Accommodate new getaddrinfo implementation in gnulib.
...
(libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h.
(MOSTLYCLEANDIRS): New macro.
(BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H).
(arpa/inet.h, netinet/in.h, sys/socket.h): New rules.
(MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h,
netinet/in.h-t, sys/socket.h, sys/socket.h-t.
(EXTRA_DIST): Add socket_.h.
2006-08-10 19:10:26 +00:00
Paul Eggert
ffafcd2998
Import from gnulib, to support new getaddrinfo implementation of gnulib.
2006-08-10 19:09:33 +00:00
Paul Eggert
01dddfef2a
Add snprintf.h, socket_.h.
2006-08-10 19:08:58 +00:00
Paul Eggert
ade68b234a
Regenerate.
2006-08-09 23:46:10 +00:00
Paul Eggert
93f90065f3
Sync from gnulib.
2006-08-09 23:42:26 +00:00
Paul Eggert
acaeed035b
Regenerate.
2006-08-09 20:24:38 +00:00
Paul Eggert
4ab47a295f
Fix too-long line in 2006-08-08 checkin, and an encoding error
...
in 2006-07-19 checkin.
2006-08-09 20:05:18 +00:00
Jim Meyering
aa4f6c56c7
Include <config.h>.
2006-08-09 08:13:36 +00:00
Paul Eggert
dc64059426
Add shuf, better random number generation, and fix sort -R in
...
funny locales.
2006-08-08 22:28:00 +00:00
Paul Eggert
73742c2566
New file, introduced for shuf, sort -R, and/or shred.
2006-08-08 22:22:47 +00:00
Paul Eggert
7e5863463c
(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.
2006-08-08 22:12:21 +00:00
Paul Eggert
aa24517b5f
chmod 0755 DIR and chmod 755 DIR are now equivalent.
2006-07-28 07:28:56 +00:00
Paul Eggert
aaa8e4f378
Remove obsolete comment about masks.
2006-07-28 07:26:06 +00:00
Paul Eggert
fa78395b2a
(mode_compile): Numeric modes now affect setuid and
...
setgid on directories only if they set these bits.
2006-07-28 07:25:44 +00:00
Paul Eggert
e718c61a7c
Split closeout into close-stream and closeout.
2006-07-22 22:28:53 +00:00
Paul Eggert
554d94c647
(close_stdout): Use new function close_stream.
2006-07-22 22:27:17 +00:00
Paul Eggert
2df2295d68
Initial revision.
2006-07-22 22:26:04 +00:00
Jim Meyering
aa91e4fe34
*** empty log message ***
2006-07-20 08:34:22 +00:00
Jim Meyering
6e41860c41
[ME_REMOTE]: Filter out cifs.
...
Reported by Toralf Frster in <http://bugs.gentoo.org/141012 >.
2006-07-20 08:34:15 +00:00
Jim Meyering
84d2889e40
*** empty log message ***
2006-07-20 07:57:10 +00:00
Jim Meyering
db42e50e5e
(ME_REMOTE): Compare strchr's result to NULL, not 0, for better readability.
2006-07-20 07:57:06 +00:00
Paul Eggert
f8e8d8dd69
In comment: bits bits -> bits.
2006-07-17 05:56:28 +00:00
Paul Eggert
a58ac00556
Regenerate.
2006-07-17 03:52:18 +00:00
Paul Eggert
628c7baa85
chmod, install, and mkdir now leave setgid and setuid bits
...
of directories alone unless you specify them explicitly.
install and mkdir now implement X correctly.
install now creates parent directories with mode 755, without
changing their owner or group.
2006-07-17 03:13:14 +00:00
Paul Eggert
86e8a6b15e
(mode_adjust): New API.
2006-07-17 03:07:41 +00:00
Paul Eggert
44ba013923
(octal_to_mode): New function.
...
(struct mode_change): New member mentioned.
(make_node_op_equals): New arg mentioned. All callers changed.
(mode_compile): Keep track of which mode bits the user has explicitly
mentioned.
(mode_adjust): New arg DIR, so that we implement the X op correctly.
New arg PMODE_BITS, to keep track of which mode bits the user
mentioned; it treats S_ISUID and S_ISGID speciall.
All callers changed.
2006-07-17 03:07:23 +00:00
Paul Eggert
9a1ed6fbf9
Adjust to new make_dir_parents API.
2006-07-17 03:07:04 +00:00
Paul Eggert
a60cc14aed
Don't include alloca.h, stdio.h, sys/types.h,
...
unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
(make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
callers changed. Revamp internals significantly, by not
attempting to create directories that are temporarily more
permissive than the final results. Do not attempt to use
save_cwd/restore_cwd; it isn't worth it for mkdir and install.
This removes some race conditions, fixes some bugs, and simplifies
things. Use new dirchownmod function to do owner and mode changes.
2006-07-17 03:06:48 +00:00
Paul Eggert
f25ddb12c6
Initial version.
2006-07-17 03:05:23 +00:00
Jim Meyering
c5b6394401
* userspec.c (parse_with_separator): Say "invalid spec" rather than
...
the sometimes erroneous "cannot get the login group of a numeric UID"
for a spec like "not-a-username:" or "1:". Reported by
suckfish@ihug.co.nz in https://bugzilla.redhat.com/bugzilla/199027 .
2006-07-16 07:13:07 +00:00
Paul Eggert
2b6236d156
Sync from gnulib.
2006-07-11 17:19:48 +00:00
Paul Eggert
cb052e4f6c
Update from gnulib.
2006-07-09 16:59:05 +00:00
Paul Eggert
28edf6a75e
(stdint.h): FULL_PATH_STDINT_H -> ABSOLUTE_STDINT_H,
...
to accommodate update from gnulib.
2006-07-09 16:57:35 +00:00
Jim Meyering
ecdb09854e
(getndelim2): Remove doubled "after" in comment.
2006-07-08 09:58:13 +00:00
Jim Meyering
addbdadf16
Really add wcwidth.h.
2006-07-04 07:28:57 +00:00
Jim Meyering
2880a90019
*** empty log message ***
2006-07-04 07:28:45 +00:00
Jim Meyering
ba761d685f
*** empty log message ***
2006-07-04 07:23:10 +00:00
Paul Eggert
6a97405672
Sync from gnulib.
2006-07-04 05:39:07 +00:00
Paul Eggert
71e6c80352
(libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h,
...
to accommodate sync from gnulib.
2006-07-04 05:37:11 +00:00
Paul Eggert
948ca71450
Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
...
MacOS X 10.4.6. Don't mention <sys/int_types.h>.
2006-07-04 04:50:34 +00:00
Jim Meyering
1a29d221b8
* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
...
macro is used before the first cycle_check call.
2006-07-03 15:20:23 +00:00
Paul Eggert
001f33d478
(intmax_t, uintmax_t): Prefer long to long long if
...
both are 64 bits.
2006-07-02 09:15:08 +00:00