[Bug 78672] Re: entries in custom upload tarballs with long names don't get extracted

Celso Providelo cprov at canonical.com
Wed Jan 10 11:47:58 GMT 2007


(09:36:56) cjwatson: hmm, the corrupt file ends up as:
(09:36:56) cjwatson: drw-r--r-- 2 lp_archive lp_archive 4096 Jan  9 17:47 default
(09:37:05) cjwatson: which makes it difficult to remove
(09:37:24) cjwatson: (doable, obviously, just not automatically by the upload handler next time round)
(09:38:43) cjwatson: cprov: so how about adding this as well as an XXXed fixup:
(09:39:27) cjwatson: if os.path.isdir(newpath):
(09:39:43) cjwatson:     mode = stat.S_IMODE(os.stat(newpath).st_mode)
(09:40:14) cjwatson:     os.chmod(newpath, mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
(09:40:15) cjwatson: ?
(09:41:20) cprov: cjwatson: sure, was it originally "-x" or did the processor mess things around ?
(09:42:27) cjwatson: tarfile got confused and interpreted the tar entry as a directory but with the permissions of the file that it really was (i.e. 0644)
(09:42:40) cjwatson: it's a consequence of the same bug ...

** Visibility changed to: Private

-- 
entries in custom upload tarballs with long names don't get extracted
https://launchpad.net/bugs/78672



More information about the ubuntu-archive mailing list