Public bug reported:
lxc exec converts Unix line endings to DOS ones:
$ echo x|hd
00000000 78 0a |x.|
$ lxc exec x1 echo x|hd
00000000 78 0d 0a |x..|
Note the extra `0d` there, which is a DOS `\r` carriage return.
This particularly breaks binary data that you send through stdout, e.
g.:
$ lxc exec x1 -- sh -c 'tar cz /etc/issue |cat' | tar tv
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 0.23-0ubuntu3
ProcVersionSignature: Ubuntu 4.2.0-19.23-generic 4.2.6
Uname: Linux 4.2.0-19-generic x86_64
ApportVersion: 2.19.2-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Dec 4 10:36:49 2015
EcryptfsInUse: Yes
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug autopkgtest third-party-packages xenial
** Tags added: autopkgtest
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1522753
Title:
lxc exec mangles line endings
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1522753/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs