Confirm user from pwd.getpwuid to avoid compress failure
authorSun Lihong <lihongx.sun@intel.com>
Thu, 5 Sep 2013 10:24:57 +0000 (18:24 +0800)
committerSun Lihong <lihongx.sun@intel.com>
Mon, 9 Sep 2013 03:24:57 +0000 (11:24 +0800)
commit1b4dbc88c485d1dce76eb9e5382cb0bc997ae26e
treee9045fd0da507ada8e27e4dde3a9702c8dc9a5b6
parent92722a5c17fd013bdffb4ea991437a7e37170a4d
Confirm user from pwd.getpwuid to avoid compress failure

In case mic compresses the image by tarfile module,it might fail
by pwd.getpwuid blocking; to avoid this,mic takes a comfirm for
user id from pwd.getpwuid after comfirming root permission.

Fixes: #1207

Change-Id: Iaa6a886936d5d6d60ba3b21608fa81d9f4c1a238
mic/creator.py