summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2006-07-17Adjust to new make_dir_parents API.Paul Eggert
2006-07-17Don't include alloca.h, stdio.h, sys/types.h,Paul Eggert
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-17Initial version.Paul Eggert
2006-07-16* userspec.c (parse_with_separator): Say "invalid spec" rather thanJim Meyering
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-11Sync from gnulib.Paul Eggert
2006-07-09Update from gnulib.Paul Eggert
2006-07-09(stdint.h): FULL_PATH_STDINT_H -> ABSOLUTE_STDINT_H,Paul Eggert
to accommodate update from gnulib.
2006-07-08(getndelim2): Remove doubled "after" in comment.Jim Meyering
2006-07-04Really add wcwidth.h.Jim Meyering
2006-07-04*** empty log message ***Jim Meyering
2006-07-04*** empty log message ***Jim Meyering
2006-07-04Sync from gnulib.Paul Eggert
2006-07-04(libcoreutils_a_SOURCES): Add setenv.h, wcwidth.h,Paul Eggert
to accommodate sync from gnulib.
2006-07-04Include <sys/types.h> after @FULL_PATH_STDINT_H@, forPaul Eggert
MacOS X 10.4.6. Don't mention <sys/int_types.h>.
2006-07-03* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if thisJim Meyering
macro is used before the first cycle_check call.
2006-07-02(intmax_t, uintmax_t): Prefer long to long long ifPaul Eggert
both are 64 bits.
2006-07-02Sync stdint module from gnulib.Paul Eggert
2006-07-01seq defaults to a minimal fixed point format that does not losePaul Eggert
information if seq's operands are all fixed point decimal numbers. You no longer need the `-f%.f' in `seq -f%.f 1048575 1024 1050623', for example, since the default format now has the same effect. seq now lets you use %a, %A, %E, %F, and %G formats. seq now uses long double internally rather than double.
2006-07-01(XSTRTOD, DOUBLE): New macros, so that we can supportPaul Eggert
both double and long double versions. (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
2006-07-01(xstrtold): New decl.Paul Eggert
2006-07-01Initial revision.Paul Eggert
2006-06-29From Derek R. Price:Jim Meyering
* lib/strftime.c: Assume strftime exists. * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
2006-06-28(CLOSEDIR): Remove. All uses changed to closedir.Paul Eggert
2006-06-20(openat): Use ?:, not if, to work around GCC bug 4210.Paul Eggert
2006-06-20fix typo in comment: s/nerrower/narrower/Jim Meyering
2006-06-19*** empty log message ***Jim Meyering
2006-06-19Apply this change from gnulib:Jim Meyering
2006-06-16 Eric Blake <ebb9@byu.net> * unsetenv.c [!defined errno]: Assume errno.h declares errno.
2006-06-11(__attribute__): Don't define if already defined.Paul Eggert
2006-06-10Apply this change from gnulib:Jim Meyering
2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> Bruno Haible <bruno@clisp.org> * strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
2006-06-05* regexec.c (group_nodes_into_DFAstates): Fix a buffer overrunPaul Eggert
reported by Andreas Schwab.
2006-05-25(small_open, large_open): New macros.Paul Eggert
(__open, __open64) [!_LIBC]: Remove. (__gen_tempname): Use small_open and large_open instead of __open and __open64. This fixes a portability bug on HP-UX 11.11i reported by Simon Wing-Tang in <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
2006-05-23Fix misspelling.Paul Eggert
2006-05-23Note problem with string.h.Paul Eggert
2006-05-23filemode.c: Don't include <string.h>.Paul Eggert
2006-05-23Don't include <string.h>; this include wasPaul Eggert
inadvertantly put into the previous patch.
2006-05-22* filemode.c (setst): Remove.Paul Eggert
(strmode): Rewrite to avoid setst. This makes the code shorter, (arguably) clearer, and the generated code is a bit smaller on my Debian GNU/Linux stable x86 host.
2006-05-22Document the internals better. Most of this changePaul Eggert
was written by Bruno Haible.
2006-05-20*** empty log message ***Jim Meyering
2006-05-20(fts_open): Fail with EINVAL if a caller violates this rule:Jim Meyering
Either FTS_LOGICAL or FTS_PHYSICAL must be provided to the fts_open() function.
2006-05-19Sync nanosleep from gnulib.Paul Eggert
2006-05-15*** empty log message ***Jim Meyering
2006-05-15(xfts_open): Always use FTS_CWDFD.Jim Meyering
2006-05-15*** empty log message ***Jim Meyering
2006-05-15Avoid the expense of an fstat, when possible.Jim Meyering
(O_NOFOLLOW, STREQ): Define. (diropen_fd): Remove function. Merge it into sole caller... (diropen): ...here. Use O_NOFOLLOW when appropriate. (fts_safe_changedir): Call fstat for dev/inode check, only if the previous open/openat call may have opened the wrong directory.
2006-05-15*** empty log message ***Jim Meyering
2006-05-15Restore the parts of fts that were removed on 2006-01-17, so thatJim Meyering
it's easier for legacy applications designed for the version of fts in glibc or BSD to convert to this more robust version. Add a new mode, FTS_CWDFD, by which to enable the improved (openat- based -- aka no-chdir) semantics. * fts_.h (FTS_CWDFD): Define. Callers must use this fts_open option to enable the more robust behavior. (FTS_OPTIONMASK): Widen accordingly. * fts.c: Restore removed code, reverting the default behavior.
2006-05-11*** empty log message ***Jim Meyering
2006-05-11(sha1_buffer): Correct comment: s/MD5/SHA1/. From James Lemley.Jim Meyering
2006-05-06.Jim Meyering
2006-05-04*** empty log message ***Jim Meyering