[Bug 2025084] [NEW] quoting bug misplaces /var/lib/hibinit-agent
Tired Sysadmin
2025084 at bugs.launchpad.net
Mon Jun 26 17:05:33 UTC 2023
Public bug reported:
Package version 1.0.0-0ubuntu11.22.04.2
The latest default /etc/hibinit-config.cfg contains the lines
# Location where to create any state files
state-dir = "/var/lib/hibinit-agent"
However, the executable reading this file doesn't understand about
quoting, thus creating a directory named <<">> in the root directory,
with subdirectories <<var>>, <<lib>>, and <<hibinit-agent">> underneath:
$ /bin/ls -lFR /\"
'/"':
total 4
drwxr-xr-x 3 root root 4096 Jun 23 17:45 var/
'/"/var':
total 4
drwxr-xr-x 3 root root 4096 Jun 23 17:45 lib/
'/"/var/lib':
total 4
drwxr-xr-x 2 root root 4096 Jun 23 17:45 'hibinit-agent"'/
'/"/var/lib/hibinit-agent"':
total 0
And of course, there is no /var/lib/hibinit-agent directory. The actual
agent process still behaves as normal, it's merely an eye-rolling
chuckle to *nix veterans, and probably confusing as all hell to *nix
newbies.
Editing the .cfg file to remove the quotes and issuing a "systemctl
restart hibinit-agent.service" will re-create the directory in the
proper place in the filesystem. Cleaning up the misplaced directory
tree was a simple matter of some carefully spelled rmdir commands.
** Affects: ec2-hibinit-agent (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ec2-hibinit-agent in Ubuntu.
https://bugs.launchpad.net/bugs/2025084
Title:
quoting bug misplaces /var/lib/hibinit-agent
Status in ec2-hibinit-agent package in Ubuntu:
New
Bug description:
Package version 1.0.0-0ubuntu11.22.04.2
The latest default /etc/hibinit-config.cfg contains the lines
# Location where to create any state files
state-dir = "/var/lib/hibinit-agent"
However, the executable reading this file doesn't understand about
quoting, thus creating a directory named <<">> in the root directory,
with subdirectories <<var>>, <<lib>>, and <<hibinit-agent">>
underneath:
$ /bin/ls -lFR /\"
'/"':
total 4
drwxr-xr-x 3 root root 4096 Jun 23 17:45 var/
'/"/var':
total 4
drwxr-xr-x 3 root root 4096 Jun 23 17:45 lib/
'/"/var/lib':
total 4
drwxr-xr-x 2 root root 4096 Jun 23 17:45 'hibinit-agent"'/
'/"/var/lib/hibinit-agent"':
total 0
And of course, there is no /var/lib/hibinit-agent directory. The
actual agent process still behaves as normal, it's merely an eye-
rolling chuckle to *nix veterans, and probably confusing as all hell
to *nix newbies.
Editing the .cfg file to remove the quotes and issuing a "systemctl
restart hibinit-agent.service" will re-create the directory in the
proper place in the filesystem. Cleaning up the misplaced directory
tree was a simple matter of some carefully spelled rmdir commands.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/2025084/+subscriptions
More information about the foundations-bugs
mailing list