configdb - bugfix: filemove not working after last changes

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5843 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-05-13 10:08:23 +00:00
parent 633744a389
commit 5dcf5ec179
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: configdb filemove not working after previous changes
- change: IMPORTANT CHANGES TO configDB!
changed: all files will be imported as binary
changed: all existing textfiles will be moved to binary

View File

@@ -261,7 +261,8 @@ sub CommandConfigdb($$) {
$filename .= "/$param1";
}
if ( -r $filename ) {
$ret = _cfgDB_Fileimport ($filename,1);
my $filesize = -s $filename;
$ret = _cfgDB_binFileimport ($filename,$filesize,1);
$ret .= "\nFile $filename deleted from local filesystem.";
} elsif ( -e $filename) {
$ret = "\n Read error on file $filename";