Closed GoogleCodeExporter closed 9 years ago
I expect that it would be like this:
stdin, stdout = os.popen4( 'df "%s"' % parent_backup_dir )
or even better like this:
stdin, stdout = os.popen4( 'df "%s"' % parent_backup_dir.replace('"', '\\"') )
Replacing ' or " in the folders could also be done in get_backup_command,
backup,
restore, delete_too_old_backups, and delete_old_backups_to_free_space. For
replacing
' you could use .replace("'", "'\\''")
Original comment by ejon...@gmail.com
on 31 Jul 2008 at 1:51
Good call - I'm a rubyist and the string escaping just didn't occur to me.
Original comment by francis....@gmail.com
on 31 Jul 2008 at 2:14
fixed in svn
Original comment by pub...@kered.org
on 5 Dec 2008 at 6:58
Original issue reported on code.google.com by
francis....@gmail.com
on 18 Jul 2008 at 3:35