summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2005-12-23*** empty log message ***Jim Meyering
2005-12-23(make_dir_parents): Use chdir_no_follow onlyJim Meyering
if we've just created the directory.
2005-12-23*** empty log message ***Jim Meyering
2005-12-23*** empty log message ***Jim Meyering
2005-12-23(chdir_no_follow): Rewrite to use fchdir evenJim Meyering
when O_NOFOLLOW is not defined. Suggested by Eric Blake.
2005-12-23*** empty log message ***Jim Meyering
2005-12-23(O_NOFOLLOW): Define, if necessary.Jim Meyering
2005-12-23(O_NOFOLLOW): Define.Jim Meyering
2005-12-22*** empty log message ***Jim Meyering
2005-12-22Include "fcntl--.h" and "unistd--.h", to map openJim Meyering
and dup to open_safer and dup_safer, respectively. (openat_permissive): Fix typo in comment.
2005-12-21.Jim Meyering
2005-12-21.Jim Meyering
2005-12-21*** empty log message ***Jim Meyering
2005-12-21like chdir(2), but safer, if possibleJim Meyering
2005-12-20*** empty log message ***Jim Meyering
2005-12-20(RW_USR): Remove definition.Jim Meyering
(make_dir_parents): Use S_IRWXU, now that read access is also required. Avoid a race condition, on systems where open honors O_NOFOLLOW. (make_dir_parents): Include chdir-safer.h. Use chdir_no_follow in place of chdir.
2005-12-20*** empty log message ***Jim Meyering
2005-12-20(make_dir_parents): Remove unnecessary casts of alloca,Jim Meyering
since now it's guaranteed to be (void *).
2005-12-20*** empty log message ***Jim Meyering
2005-12-20(fchmod_new): Don't try to close fd if it's < 0.Jim Meyering
2005-12-19.Jim Meyering
2005-12-19.Jim Meyering
2005-12-17.Jim Meyering
2005-12-17*** empty log message ***Jim Meyering
2005-12-17(acl_entries): Add fallback implementation for POSIX ACLJim Meyering
systems other than Linux. (chmod_or_fchmod): New function: use fchmod when possible, and chmod otherwise. (file_has_acl): Add a POSIX ACL implementation, with a Linux-specific subcase. (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and S_ISVTX from one file to another. Fall back to fchmod/chmod when acls are unsupported. (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and S_ISVTX to a defined value. Fall back to fchmod/chmod when acls are unsupported.
2005-12-17(copy_acl, set_acl): Add declarations.Jim Meyering
2005-12-17remove/openat cleanupPaul Eggert
2005-12-17Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,Paul Eggert
"gettext.h"; either no longer needed or are guaranteed by openat.h. (_): Remove; no longer needed. (openat): Renamed from rpl_openat; no need for rpl_openat since openat.h renames openat for us. Replace most of the body with a call to openat_permissive, to avoid duplicate code. Port to (probably hypothetical) environments were mode_t is wider than int. (openat_permissive): Require mode arg, so that we can check types better. Put it just after flags. Change cwd failure indicator from pointer-to-bool to pointer-to-errno-value. All callers changed. Invoke openat_save_fail and/or openat_restore_fail if cwd_errno is null, so that openat can call us. (openat_permissive, fdopendir, fstatat, unlinkat): Simplify errno handling to avoid some duplicate code, as it's OK to set errno on success.
2005-12-17Revamp code so that function macros depend onPaul Eggert
__OPENAT_PREFIX only, not also on AT_FDCWD. (openat_ro): Remove. Caller changed to use openat_permissive. (openat_permissive): Now a macro, if not a function. (openat_restore_fail, openat_save_fail): Now always functions, since mkdirat needs them even if __OPENAT_PREFIX is defined.
2005-12-15.Jim Meyering
2005-12-14*** empty log message ***Jim Meyering
2005-12-14(libcoreutils_a_SOURCES): Remove fprintftime.cJim Meyering
and fprintftime.h. Now they're pulled in via the .m4 file.
2005-12-14* Makefile.am (stdbool.h): Resurrect the 'sed' that goes alongPaul Eggert
with '#if !@HAVE_BOOL@".
2005-12-14(stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@".Paul Eggert
2005-12-13(_Bool): Resurrect the "#if !@HAVE__BOOL@" check, toPaul Eggert
work around compilers that have a (possibly-broken) _Bool but lack a working <stdbool.h>.
2005-12-07* lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check forPaul Eggert
TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3 porting problem reported by Georg Schwarz in <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>. * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2005-12-05Mention reporters for "none" and "proc" mounts.Paul Eggert
2005-12-04*** empty log message ***Jim Meyering
2005-12-04(EXPECTED_ERRNO): Add ENOSYS, for Solaris 8.Jim Meyering
Paul Eggert reported that unlink/rmdir vs. e.g., /proc/self/fd/N/FILE fails with ENOSYS. This makes openat revert to using save-cwd.c functions in that case.
2005-12-03.Jim Meyering
2005-12-02*** empty log message ***Jim Meyering
2005-12-02Import from gnulib.Paul Eggert
2005-11-30*** empty log message ***Jim Meyering
2005-11-30Include openat-priv.h.Jim Meyering
Remove definitions of macros defined therein.
2005-11-30Define macros used by mkdirat.c and openat.c.Jim Meyering
2005-11-30*** empty log message ***Jim Meyering
2005-11-30(mkdirat): Declare.Jim Meyering
2005-11-30*** empty log message ***Jim Meyering
2005-11-30(mkdirat): New file and function.Jim Meyering
2005-11-26Log today's changes.Paul Eggert