[PR #446] [MERGED] fix --account command backup file path generation #839

Closed
opened 2025-12-29 01:29:35 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dehydrated-io/dehydrated/pull/446
Author: @acritox
Created: 10/17/2017
Status: Merged
Merged: 10/22/2017
Merged by: @lukas2511

Base: masterHead: fix_account_backup


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 dehydrated (+1 -1)

📄 Description

it should split the filename on the last dot instead of the first

example of problem if you have a dot in your path (e.g. the dot in my username a.loibl):

$ dehydrated --account
# INFO: Using main config file /home/a.loibl/xxx/config
+ Updating registration id: 11447865 contact information...
+ Backup /home/a.loibl/xxx/accounts/xxx/registration_info.json as /home/a-1508250049.json
cp: cannot create regular file ‘/home/a-1508250049.json’: Permission denied

with this change:

$ dehydrated --account
# INFO: Using main config file /home/a.loibl/xxx/config
+ Updating registration id: 11447865 contact information...
+ Backup /home/a.loibl/xxx/accounts/xxx/registration_info.json as /home/a.loibl/xxx/accounts/xxx/registration_info-1508250417.json
+ Populate /home/a.loibl/xxx/accounts/xxx/registration_info.json
+ Done!

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dehydrated-io/dehydrated/pull/446 **Author:** [@acritox](https://github.com/acritox) **Created:** 10/17/2017 **Status:** ✅ Merged **Merged:** 10/22/2017 **Merged by:** [@lukas2511](https://github.com/lukas2511) **Base:** `master` ← **Head:** `fix_account_backup` --- ### 📝 Commits (1) - [`7f410e9`](https://github.com/dehydrated-io/dehydrated/commit/7f410e9bffaf958ede6c6ba71f163d1284252875) fix account command ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `dehydrated` (+1 -1) </details> ### 📄 Description it should split the filename on the last dot instead of the first example of problem if you have a dot in your path (e.g. the dot in my username **a.loibl**): ``` $ dehydrated --account # INFO: Using main config file /home/a.loibl/xxx/config + Updating registration id: 11447865 contact information... + Backup /home/a.loibl/xxx/accounts/xxx/registration_info.json as /home/a-1508250049.json cp: cannot create regular file ‘/home/a-1508250049.json’: Permission denied ``` with this change: ``` $ dehydrated --account # INFO: Using main config file /home/a.loibl/xxx/config + Updating registration id: 11447865 contact information... + Backup /home/a.loibl/xxx/accounts/xxx/registration_info.json as /home/a.loibl/xxx/accounts/xxx/registration_info-1508250417.json + Populate /home/a.loibl/xxx/accounts/xxx/registration_info.json + Done! ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 01:29:35 +01:00
adam closed this issue 2025-12-29 01:29:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#839