Public bug reported: This error is received for each LVM listed in the rsnapshot.conf file: Use of uninitialized value $linux_lvm_oldpwd in concatenation (.) or string at /usr/bin/rsnapshot line 3720. chdir() Use of uninitialized value $linux_lvm_oldpwd in chdir at /usr/bin/rsnapshot line 3722. Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/bin/rsnapshot line 3722.
The error actually occurs at the assignment of $linux_lvm_oldpwd on line 3543. $linux_lvm_oldpwd = $ENV{PWD}; $ENV{PWD} returns nothing. This was not the case in December and this started failing for me sometime around Jan 10th, 2014. I am not a Perl programmer but the documentation I found states that the proper way to get the current working directory is to call cwd() and NOT use $ENV{PWD}. I replaced the offending line with the following: $linux_lvm_oldpwd = cwd(); I no longer experience the issue. - jss ** Affects: rsnapshot (Ubuntu) Importance: Undecided Status: New ** Patch added: "rsnapshot.patch" https://bugs.launchpad.net/bugs/1270686/+attachment/3952433/+files/rsnapshot.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1270686 Title: rsnapshot LVM backup fails at line 3720 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rsnapshot/+bug/1270686/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs