Message ID | 6cc2468237eaa50d98b6af05ada8ebee0233fb11.1365524492.git.sbehrens@giantdisaster.de (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/cmds-receive.c b/cmds-receive.c index f937366..e5467d2 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -755,7 +755,7 @@ static int process_utimes(const char *path, struct timespec *at, tv[0] = *at; tv[1] = *mt; - ret = utimensat(-1, full_path, tv, AT_SYMLINK_NOFOLLOW); + ret = utimensat(AT_FDCWD, full_path, tv, AT_SYMLINK_NOFOLLOW); if (ret < 0) { ret = -errno; fprintf(stderr, "ERROR: utimes %s failed. %s\n",
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de> --- cmds-receive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)