Re: [PATCH 3/3] use xgetcwd() get the current directory or die

2014-07-20 Thread René Scharfe
Am 20.07.2014 14:45, schrieb Duy Nguyen: On Sun, Jul 20, 2014 at 6:22 PM, René Scharfe wrote: Convert several calls of getcwd() and die() to use xgetcwd() instead. This way we get rid of fixed-size buffers (which can be too small depending on the used file system) and gain consistent error mess

Re: [PATCH 3/3] use xgetcwd() get the current directory or die

2014-07-20 Thread Duy Nguyen
On Sun, Jul 20, 2014 at 6:22 PM, René Scharfe wrote: > Convert several calls of getcwd() and die() to use xgetcwd() instead. > This way we get rid of fixed-size buffers (which can be too small > depending on the used file system) and gain consistent error messages. > > Signed-off-by: Rene Scharfe

[PATCH 3/3] use xgetcwd() get the current directory or die

2014-07-20 Thread René Scharfe
Convert several calls of getcwd() and die() to use xgetcwd() instead. This way we get rid of fixed-size buffers (which can be too small depending on the used file system) and gain consistent error messages. Signed-off-by: Rene Scharfe --- builtin/init-db.c | 17 - builtin/rev-p