diff options
author | Bernhard Froehlich <decke@FreeBSD.org> | 2013-01-03 13:37:12 +0000 |
---|---|---|
committer | Bernhard Froehlich <decke@FreeBSD.org> | 2013-01-03 13:37:12 +0000 |
commit | c99eac3bb883533949aa4699f3c272c5e7114d13 (patch) | |
tree | d3a0541d3b7981ce5b5583f38da42bca7033df6e /emulators/virtualbox-ose-legacy/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp | |
parent | - Update to 0.1.9998r2662 (diff) |
- Update to 4.1.24
- Fix building with libxslt newer than 1.1.26
Obtained from: https://www.virtualbox.org/ticket/10940
Notes
Notes:
svn path=/head/; revision=309875
Diffstat (limited to 'emulators/virtualbox-ose-legacy/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp')
-rw-r--r-- | emulators/virtualbox-ose-legacy/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-legacy/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp b/emulators/virtualbox-ose-legacy/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp new file mode 100644 index 000000000000..00e3d32c29d5 --- /dev/null +++ b/emulators/virtualbox-ose-legacy/files/patch-src-VBox-Frontends-VBoxManage-VBoxInternalManage.cpp @@ -0,0 +1,25 @@ +- Add support for files to VBoxManage createrawvmdk. Currently +it only supports character devices so it failes like this: + +VBoxManage internalcommands createrawvmdk -filename test.vmdk -rawdisk /vbox/HardDisks/test.img +VBoxManage: error: File '/vbox/HardDisks/test.img' is no character device +VBoxManage: error: The raw disk vmdk file was not created + +Submitted by: Pawel Jakub Dawidek <pjd@FreeBSD.org> +--- src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp.orig 2011-12-13 11:18:43.424439415 +0100 ++++ src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp 2011-12-13 11:22:01.554438862 +0100 +@@ -1140,9 +1140,13 @@ + goto out; + } + } ++ else if (S_ISREG(DevStat.st_mode)) ++ { ++ cbSize = DevStat.st_size; ++ } + else + { +- RTMsgError("File '%s' is no character device", rawdisk.c_str()); ++ RTMsgError("File '%s' is neither character device nor regular file", rawdisk.c_str()); + vrc = VERR_INVALID_PARAMETER; + goto out; + } |