summaryrefslogtreecommitdiff
path: root/src/mkdir.c
AgeCommit message (Collapse)Author
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23(usage): Note that ``Mandatory arguments to long options are mandatoryJim Meyering
for short options too.''
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-02-21(main): Remove assignment-in-if-expression.Jim Meyering
In fact, remove t_errno altogether.
2000-12-02(main): Remove any trailing slash unconditionally.Jim Meyering
Reported by Volker Borchert.
2000-11-18(main): When failing to create a directory, give onlyJim Meyering
one diagnostic, not two. Reported by Volker Borchert.
2000-11-18(main): With --parents, remove any trailing slashesJim Meyering
from the argument to the final mkdir call. Required for NetBSD.
2000-11-09Do not set the permissions of the final directoryJim Meyering
component if it was not just created. Based on a patch from Volker Borchert.
2000-11-05(main): Use make_dir instead of using mkdir directly.Jim Meyering
Diagnose as failure when mkdir tries to create (without the --parent (-p) option) a directory that already exists.
2000-11-01remove const attribute for PARENTSJim Meyering
2000-11-01Fix bad typo! free the string, PARENTS, not the function, dir_name.Jim Meyering
2000-10-31`mkdir -p' would create parent directories with permissionsJim Meyering
that did not account for the umask. [introduced with the 2000-09-30 change that became part of fileutils-4.0.28] Include dirname.h. Compute the parent directory `mode' unconditionally, effectively as `$(umask -S),u+wx'. Use make_path to create only the parent directories, thus using the same code, both with and without -p, to create the final component in each file name. Reported by Bob Proulx.
2000-09-30(main): Rename local `symbolic_mode' to `specified_mode'.Jim Meyering
2000-09-30(main): Don't set the umask to 0 and hand-applyJim Meyering
the previously-set umask unconditionally. Do that only when a MODE has been specified. Otherwise, call mkdir with the full creation mask (0777 or 0666) and let the kernel apply the umask. The difference shows up only on file systems with ACL support when the containing directory has a default ACL. Patch by Andreas Gruenbacher.
2000-09-08(S_IRWXUGO): Remove definition.Jim Meyering
2000-08-08(main): Invoke xalloc_die instead of printing our own message.Jim Meyering
2000-07-30Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call.
2000-06-03Allow -v as synonym for --verbose, to be consistent with other fileutils.Jim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-04-26Rename global: s/path_mode/create_parents/.Jim Meyering
(main): No longer perform explicit chmod when creating parent directories, since make_path now does the chmod.
1999-11-17(S_IRWXUGO): Define if necessary.Jim Meyering
(main): Use chmod to set the permissions if bits other than those of S_IRWXUGO were requested. Reported by Sami Farin.
1999-05-07(main): Use better wording in diagnostic: `cannotJim Meyering
create directory' rather than `cannot make directory'. The former also matches the one in makepath.c.
1999-04-26(main): Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-16(usage): Don't make it static so that it can be called from libfu.a by ↵Jim Meyering
xargmatch.
1998-09-19update bug-reporting addressJim Meyering
1998-08-30(longopts): Use corresponding short-option characterJim Meyering
in place of `1', and `NULL' in place of pointer in initialization.
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1997-10-07update bug-reporting addressJim Meyering
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1996-11-23(usage): Alphabetize option descriptions the way sort -f would.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-04-25(main): Use verbose_fmt_string, not string literal inJim Meyering
call to make_path for --parents. From Uli.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-13(main): Add new option: --verbose.Jim Meyering
Remove long-deprecated and nowhere-documented --path, a synonym for --parents. It was confusing to get an error about `--p' being ambiguous.
1996-03-24Update FSF's address.Jim Meyering