Am 17.04.2013 22:49, schrieb Serge Hallyn:
> Quoting Richard Weinberger (rich...@nod.at):
>> Am 17.04.2013 18:00, schrieb Serge Hallyn:
>>> Quoting Richard Weinberger (rich...@nod.at):
Reimplement mkdir_p() such that it:
...handles relativ paths correctly. (currently it crashes)
Reimplement mkdir_p() such that it:
...handles relativ paths correctly. (currently it crashes)
...does not rely on dirname().
...is not recursive.
...is shorter. ;-)
Signed-off-by: Richard Weinberger
---
src/lxc/utils.c | 46 +++---
1 file changed, 15
Quoting Richard Weinberger (rich...@nod.at):
> Reimplement mkdir_p() such that it:
> ...handles relativ paths correctly. (currently it crashes)
> ...does not rely on dirname().
> ...is not recursive.
> ...is shorter. ;-)
>
> Signed-off-by: Richard Weinberger
Thanks, this looks great.
Acked-
Am 17.04.2013 18:00, schrieb Serge Hallyn:
> Quoting Richard Weinberger (rich...@nod.at):
>> Reimplement mkdir_p() such that it:
>> ...handles relativ paths correctly. (currently it crashes)
>> ...does not rely on dirname().
>> ...is not recursive.
>> ...is shorter. ;-)
>
> Looks good, than
Quoting Richard Weinberger (rich...@nod.at):
> Am 17.04.2013 18:00, schrieb Serge Hallyn:
> >Quoting Richard Weinberger (rich...@nod.at):
> >>Reimplement mkdir_p() such that it:
> >> ...handles relativ paths correctly. (currently it crashes)
> >> ...does not rely on dirname().
> >> ...is not rec
Reimplement mkdir_p() such that it:
...handles relativ paths correctly. (currently it crashes)
...does not rely on dirname().
...is not recursive.
...is shorter. ;-)
Signed-off-by: Richard Weinberger
---
src/lxc/utils.c | 48 +---
1 file changed, 1
Quoting Richard Weinberger (rich...@nod.at):
> Reimplement mkdir_p() such that it:
> ...handles relativ paths correctly. (currently it crashes)
> ...does not rely on dirname().
> ...is not recursive.
> ...is shorter. ;-)
Looks good, thanks. Yeah I prefer non-recursive. Three
comments though,