|
On 2012-12-06 1:27 AM, "Dirk Laurie" <dirk.laurie@gmail.com> wrote:
>
> os.execute ("mkdir %s; chown %s.%s %s; chmod %s %s"):
> format(dirname,t.owner,t.group,dirname,t.mode,dirname)
That needs more parens:
os.execute (("mkdir %s; chown %s.%s %s; chmod %s %s"):
format(dirname,t.owner,t.group,dirname,t.mode,dirname))
without them, it would be trying to format the result of os.execute. (It's also not secure at all; consider dirname="x;rm -rf /")