summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-25 11:07:20 +0000
committerJim Meyering <jim@meyering.net>2000-12-25 11:07:20 +0000
commitf4795cc6b38772f2b241c7fc07fecdcc5d8feb48 (patch)
treedb5c72245ea2ffce9a1b3f99baf2ef0768fbaf84 /src
parent5688e294f7b4c26a9099daee4dc8d1329ac2377d (diff)
downloadcoreutils-f4795cc6b38772f2b241c7fc07fecdcc5d8feb48.tar.xz
For both ln and install, when using `--backup=simple --suffix=S',
the suffix `S' wasn't used. (main): Actually use the local variable, `backup_suffix_string'.
Diffstat (limited to 'src')
-rw-r--r--src/install.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index 1cae79e1f..5b919c44d 100644
--- a/src/install.c
+++ b/src/install.c
@@ -273,8 +273,13 @@ main (int argc, char **argv)
error (1, 0,
_("the strip option may not be used when installing a directory"));
- if (make_backups)
- x.backup_type = xget_version ("backup type", version_control_string);
+ if (backup_suffix_string)
+ simple_backup_suffix = xstrdup (backup_suffix_string);
+
+ x.backup_type = (make_backups
+ ? xget_version (_("backup type"),
+ version_control_string)
+ : none);
n_files = argc - optind;
file = argv + optind;