summaryrefslogtreecommitdiff
path: root/src/ln.c
AgeCommit message (Collapse)Author
1998-09-19update bug-reporting addressJim Meyering
1998-08-30(long_options): Use corresponding short-option characterJim Meyering
in place of `1', and `NULL' in place of pointer in initialization.
1998-02-08(usage): Reword to use `TARGET' and `LINK_NAME' in description.Jim Meyering
1998-01-22Declare new global, backup_type.Jim Meyering
(main): Initialize backup_type unconditionally. (do_link): Call find_backup_file_name with new argument, backup_type.
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1997-12-11(do_link): Don't require --force when target exists andJim Meyering
using --backup. This changes makes ln consistent with cp and mv in this respect. Suggestion from Eli Zaretskii.
1997-10-23Remove stpcpy decl.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-09-15(do_link): Perform S_ISLNK test only if lstat succeeded.Jim Meyering
1997-09-01(do_link): Form destination file name (when DEST is a directory) beforeJim Meyering
checking whether SOURCE and DEST are the same file.
1997-05-27Use base_name, not basename.Jim 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-08-01[LINK_TYPE]: Remove macro. NLS messages aren'tJim Meyering
extracted from macros. (link_type_string): New global variable to be used instead of LINK_TYPE. (main): Set it here. (do_link): Use it (instead of macro) here.
1996-07-06(usage): Factor out backup-related text into separate string/printf statement.Jim Meyering
1996-07-02(do_link): Update messages to ease translation.Jim Meyering
Suggestion from Santiago Vila.
1996-06-29(do_link): Allow `ln -sf --backup k k' to succeed in creating theJim Meyering
self-referential symlink, doing so doesn't remove the source but merely renames it.
1996-06-26(do_link): Remove `!symlink &&' conjunct.Jim Meyering
1996-06-26(same_name): Declare parameters to be const.Jim Meyering
1996-06-26(same_name): New function.Jim Meyering
(do_link): Use it to test reliably whether A and B (from ln --force A B) are hard links to the same file. From Andreas Schwab.
1996-06-19(decode_switches): Correct typo in error message:Jim Meyering
enironment -> environment. From Santiago Vila Doncel <sanvila@unex.es>.
1996-05-16(do_link): Declare pointer parameters to be const.Jim Meyering
1996-04-25(do_link): With --force, don't remove DEST when it'sJim Meyering
the same as SOURCE. Before, `ln -f FILE FILE' would remove FILE. Reported by Bruno Haible.
1996-04-25(do_link): Remove duplicate `if (lstat' block.Jim Meyering
1996-04-24update Copyright years for 1996Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1995-12-19[SYMBOLIC_SPACE_STRING]: New macro.Jim Meyering
(do_link): Use it instead of open-coded #ifdef. For --verbose, say `create link DEST to SRC' instead of ambiguous (or inconsistent with cp -v and mv -v) `SRC -> DEST.'
1995-11-29Mark all translatable strings using po-mode.el.Jim Meyering
1995-11-27(usage): Clarify description of --no-dereferences.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-15Break long lines.Jim Meyering
1995-11-09Move main to the end.Jim Meyering
Remove fwd dcls.
1995-11-09Protoize.Jim Meyering
1995-06-22(main): Include program name in --version output.Jim Meyering
1995-05-22(usage): Add one or two lines of descriptive text.Jim Meyering
1995-05-13Use stat (lstat), not safe_stat (safe_lstat).Jim Meyering
1995-03-10add 1995 to Copyright datesJim Meyering
1995-01-27Rename SAFE_STAT and SAFE_LSTAT to lower case names.Jim Meyering
1994-12-27Include "error.h" rather than simply declaring `void error ();'.Jim Meyering