diff options
| author | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-03 19:14:58 +0000 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-10-03 19:14:58 +0000 |
| commit | 40865edea16c8eaa93ba391a71e20318e0a7d244 (patch) | |
| tree | 7560ea87ff2947a8c30364be09f08da95b82f6dc /ldap/admin/src/scripts/Inf.pm | |
| parent | f6aa853daf016616a76b490c8d22645dbf98855e (diff) | |
| download | ds-40865edea16c8eaa93ba391a71e20318e0a7d244.tar.gz ds-40865edea16c8eaa93ba391a71e20318e0a7d244.tar.xz ds-40865edea16c8eaa93ba391a71e20318e0a7d244.zip | |
Resolves: #316281
Summary: db2bak fails if the archive path exists and ends with '/'
Fix description:
1. Use path normalize API rel2abspath to remove the trailing '/'s.
2. db2bak renames the archive dir if the directory exists, checks the directory
is the db dir or not. If it is, the command line rename back the existing db
to the original and exits with the error: db2archive: Cannot archive to the db
directory. Then, the original dir is renamed back. If the db2bak runs as a
task (db2bak.pl or console), the server is up and running. Although the
backend is disabled, we don't want to rename the db path even for a short time.
That being said, changed the order to: check if the archive dir is the same as
db dir or not. It exits immediately.
Diffstat (limited to 'ldap/admin/src/scripts/Inf.pm')
0 files changed, 0 insertions, 0 deletions
