summaryrefslogtreecommitdiff
path: root/src/ln.c
AgeCommit message (Collapse)Author
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-10-15(usage): Clarify that --directory, -d, -F probably won'tJim Meyering
work even for superuser. Suggestion from Dan Jacobson.
2003-09-28Remove unnecessary casts of alloca, since now it's guaranteed to be (void *).Jim Meyering
2003-09-28Minor efficiency tweak.Jim Meyering
(PATH_BASENAME_CONCAT): Use memcpy rather than strcpy. (do_link): Likewise.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-08-30(do_link): Use SAME_INODE rather than open-coding it.Jim Meyering
2003-07-12It appears that the `#pragma alloca' included via "system.h" isJim Meyering
adequate, since join.c uses alloca, yet lacked an in-file #pragma. Remove `#pragma alloca'.
2003-06-19(ENABLE_HARD_LINK_TO_SYMLINK_WARNING): Define to 0.Jim Meyering
(do_link): Don't warn about hard link to symlink.
2003-06-17(main): Call initialize_main.Jim Meyering
2003-05-10(main): Test for `missing argument' before computing n_files.Jim Meyering
2003-04-11Remove SPC in SPC-TAB sequence.Jim Meyering
2002-10-08(main): Fix target_directory parsing when n_files == 1.Jim Meyering
Patch by Dmitry V. Levin.
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-30Change `error (1, ...' to `error (EXIT_FAILURE, ...'.Jim Meyering
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2002-03-10(main): Change wording in diagnostic.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-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-08-14(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2001-07-02(do_link): Test the boolean symbolic_link, not the function, symlink.Jim Meyering
Patch by Frederik Eaton.
2001-05-12(strip_trailing_slashes): Remove declaration; now in dirname.h.Jim Meyering
2001-02-03(main): Change type of index variable to `unsigned int' to avoid a warning.Jim Meyering
2000-12-24(main): Actually use the local variable, `backup_suffix_string'.Jim Meyering
2000-09-04(do_link): Tweak diagnostics.Jim Meyering
2000-08-08(do_link): Invoke xalloc_die instead of printing our own message.Jim Meyering
2000-07-24Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call. Add more precise diagnostics.
2000-05-15(do_link): Use complete strings in diagnostics so theyJim Meyering
are easier to translate. Reported by Michel Robitaille. (main): Drop support for the case in which S_ISLNK wasn't defined. It was broken in any case.
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-04-08Document that while the --backup option takes anJim Meyering
optional argument, the -b option accepts none. (main): Use `backup type' in call to xget_version, not the now-deprecated `--version-control'.
2000-01-24(usage): Describe behavior when LINK_NAME is omitted.Jim Meyering
From Michael Stone.
2000-01-09(do_link): Produce the same sort of one-line output forJim Meyering
`--backup --verbose' as cp, mv, install. Before this, the backup file name wasn't printed at all.
1999-12-23(usage): Correct typos.Jim Meyering
List new --target-directory=... usage. Reported by Göran Uddeborg
1999-11-07(do_link): Warn that making a hard link to a symbolic link is not portable.Jim Meyering
1999-11-07Remove entire #if LINK_FOLLOWS_SYMLINKS block.Jim Meyering
1999-11-07Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS blockJim Meyering
1999-11-07Allow hard links to symlinks on systems that support it.Jim Meyering
(STAT_LIKE_LINK): Define. (do_link): Use STAT_LIKE_LINK, rather than bare `stat', and perform the extra lstat only on systems where LINK_FOLLOWS_SYMLINKS.
1999-11-06(do_link): Fix typo (in which the function name `symlink'Jim Meyering
was tested instead of the variable `symbolic_link') that could make ln perform an unneeded `stat' call.
1999-10-31tweak usageJim Meyering
1999-10-30Convert --backup to take an optional argument.Jim Meyering
Deprecate --version-control (-V) in comments. (usage): Remove mention of --version-control. (main): Make -V warn then fall through into --backup case. [--backup case]: Handle optional arg.
1999-10-17remove last `,' in enumJim Meyering
1999-10-09Accept new option: --target-directory=DIRJim Meyering
(TARGET_DIRECTORY_OPTION): Define. (usage): Describe it. (main): Implement it. Make code clearer: use new variable `n_files' in place of `argc - optind'. Use `file' instead of `argv + optind'.
1999-05-23(same_name): Remove function.Jim Meyering
<same.h>: Include this instead. <dirname.h>: No longer include this.
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.