quoting bug misplaces /var/lib/hibinit-agent

Bug #2025084 reported by Tired Sysadmin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ec2-hibinit-agent (Ubuntu)
New
Undecided
Unassigned

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.

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thank you for submitting this bug! This is being tracked in https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/2023924 already and is in the process of being merged into Jammy already.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.