summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-07-19tweak spacing to align backslashesJim Meyering
2006-07-17In comment: bits bits -> bits.Paul Eggert
2006-07-17Regenerate.Paul Eggert
2006-07-17Regenerate.Paul Eggert
2006-07-17Fix typo in previous checkin; some file names were wrong.Paul Eggert
2006-07-17chmod, install, and mkdir now leave setgid and setuid bitsPaul Eggert
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-17Add a test for the X bug.Paul Eggert
2006-07-17Remove re_protect case that no longer applies.Paul Eggert
GNU chmod now behaves like other versions of chmod.
2006-07-17Do the setgid test instead of bailing.Paul Eggert
2006-07-17(main): Adjust to new mode_adjust API.Paul Eggert
2006-07-17(main): Adjust to new mode_adjust API.Paul Eggert
2006-07-17(struct mkdir_options): New struct.Paul Eggert
(announce_mkdir, make_ancestor): New functions. (main): Use them. Adjust to mode_adjust API change. Stick with umask 0. Use make_dir_parents for all the work.
2006-07-17Include mkancesdirs.h.Paul Eggert
(announce_mkdir, make_ancestor): New functions. (DEFAULT_MODE): New macro, specifying initial value of 'mode'. (mode): Use it. (dir_mode, dir_mode_bits): New vars. (main): Set dir modes separately from nondir, so that the X op of -m works correctly. (main): Remove cwd_errno cruft, since make_dir_parents no longer affects cwd. Adjust to new make_dir_parents API. (install_file_in_file_parents): 2nd arg is now char *, not char const *. Use mkancesdirs instead of rolling our own code. (change_attributes): Don't worry about AFS, since that kludge should not be needed any more.
2006-07-17(process_file): Adjust to mode_adjust API change.Paul Eggert
2006-07-17(gl_PREREQ): Require gl_MKANCESDIRS.Paul Eggert
2006-07-17(gl_MKDIR_PARENTS): Mention dirchownmod.c, dirchownmod.h.Paul Eggert
Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER; no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs it.
2006-07-17Remove; no longer needed.Paul Eggert
2006-07-17(gl_MACROS): Remove gl_AFS.Paul Eggert
2006-07-17(mode_adjust): New API.Paul Eggert
2006-07-17(octal_to_mode): New function.Paul Eggert
(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-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-17(Mode Structure): Modernize the explanation of thePaul Eggert
setuid and setgid bits on directories. (Changing Special Mode Bits): Mention that a implies both u and g for s. Cross reference to new node. (Numeric Modes): Don't claim that 0055 is the same as 55; this isn't true any more. Mention new node. 4755 is now like u=rwxs,go=rx,g-s, not like u=rwxs,go=rx. (Directory Setuid and Setgid): New node.
2006-07-17Change GNU to @acronym{GNU} in a few places.Paul Eggert
Use "set-user-ID" and "set-group-ID" a bit more consistently. Use "appropriate privileges" rather than "super-user" a bit more consistently. (install invocation): Parent directories are now 755 without uid or gid changing. The default mode is now 0755, not 755. (mkdir invocation): Rewrite the top-level usage description, since I couldn't easily follow the old one. It's now 3 lines not 8. For -m, describe file permission bits versus other bits, and note that mkdir is atomic if you don't mention special bits. (chmod invocation): Mention what chmod does to setgid and setuid bits.
2006-07-17Initial version.Paul Eggert
2006-07-17chmod, install, and mkdir now leave setgid and setuid bitsPaul Eggert
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-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-14(do_decode): Output to parameter OUT, not to stdout.Paul Eggert
2006-07-14* Makefile.maint (CVS_LIST): Use new file, build-aux/vc-list-files,Jim Meyering
rather than open-coding it. Now supports mercurial, too. * .hgignore: New file. * Makefile.am (EXTRA_DIST): Add .hgignore, which ignores nearly all generated files, including ones like configure and po/*.po that are currently version-controlled in cvs. * build-aux/vc-list-files: New file.
2006-07-14* Makefile.am (EXTRA_DIST): Add a few more .??* files.Jim Meyering
They've been in CVS, just haven't been distributed before this. Distribute ChangeLog-2005, too. (MAINTAINERCLEANFILES): Add THANKS-to-translators.
2006-07-11Assume <dirent.h> exists, since gnulib assumes this now as well.Paul Eggert
2006-07-11Sync from gnulib.Paul Eggert
2006-07-11(gl_STDINT_H): Like yesterday's change toPaul Eggert
absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string "no/such/file/stdint.h" when there is no such file, so that the resulting C code can be parsed by dodgy compilers. Problems reported by Bob Proulx.
2006-07-10(gl_ABSOLUTE_HEADER): Use "" rather than <>Paul Eggert
around the absolute name, to work around a problem with the HP-UX 11.23 native C compiler, reported by Bob Proulx.
2006-07-09*** empty log message ***Jim Meyering
2006-07-09(TESTS): Add dir2dir.Jim Meyering
2006-07-09*** empty log message ***Jim Meyering
2006-07-09Adjust so failing with ENOTEMPTY is ok, too.Jim Meyering
That happens with Linux/tmpfs.
2006-07-09Regenerate.Paul Eggert
2006-07-09Adjust to recent updates from gnulib.Paul Eggert
2006-07-09Adjust to today's renaming changes in system.h.Paul Eggert
2006-07-09(print_it): Don't assume char is unsigned.Paul Eggert
2006-07-09(print_esc): Don't assume char is unsigned.Paul Eggert
2006-07-09(create_fullname): Don't assume char is unsigned.Paul Eggert
2006-07-09(is_blank): Remove; no longer needed. All usesPaul Eggert
replaced by isblank (to_uchar (...)).
2006-07-09(unexpand): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(is_char_class_member): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(initialize_regex, fix_output_parameters): Don't assume that isprintPaul Eggert
etc. return booleans (needed for pre-C99 hosts). (SKIP_NON_WHITE, SKIP_WHITE, SKIP_WHITE_BACKWARDS): (copy_unescaped_string): Don't assume char is unsigned.
2006-07-09(check_punctuation): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).
2006-07-09(expand): Don't assume that isprint etc. returnPaul Eggert
booleans (needed for pre-C99 hosts).