[linux-target-packaging] Bug#858459: targetcli-fb: backup files not written unless dir exists
Christian Seiler
christian at iwakd.de
Wed Mar 22 16:01:27 UTC 2017
Control: retitle -1 targetcli-fb: backup files not written unless dir exists
Control: severity -1 important
Control: tags -1 + confirmed upstream
On 03/22/2017 04:21 PM, Harald Dunkel wrote:
> Package: targetcli-fb
> Version: 2.1.43-1
>
> targetcli claims to write backups on exit (using the default
> configuration), but it doesn't:
>
> :
> /> exit
> Info: Global pref auto_save_on_exit=true
> Info: Last 10 configs saved in /etc/rtslib-fb-target/backup.
> Info: Configuration saved to /etc/rtslib-fb-target/saveconfig.json
> root at nasl003b:~# ls -al /etc/rtslib-fb-target
> total 32
> drwxr-xr-x 2 root root 4096 Mar 22 16:17 .
> drwxr-xr-x 101 root root 12288 Mar 20 14:28 ..
> -rw------- 1 root root 14323 Mar 22 16:17 saveconfig.json
Yes, indeed, that's unfortunately true. The problem here is that
it will only store backups if the backup directory exists. (You
can manually create that directory as a workaround at the
moment.)
Increasing bug severity as the command line message is very, very
misleading and could lull users into a false sense of security.
Thanks for reporting this!
Regards,
Christian
More information about the Linux-target-packaging
mailing list