diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-05-08 20:00:26 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-05-08 20:00:26 +0000 |
commit | b4256882c089ac90d3bb031d8ce47cdba65dfbde (patch) | |
tree | 2d667020a5b80e86130ae4790023a0749dc20000 /usr.bin/rsync/symlinks.c | |
parent | 73985a2cfa723d90e961688552fb3eb605909877 (diff) |
remove sess argument from log functions. ok deraadt@
Diffstat (limited to 'usr.bin/rsync/symlinks.c')
-rw-r--r-- | usr.bin/rsync/symlinks.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/rsync/symlinks.c b/usr.bin/rsync/symlinks.c index 68265829505..5f706686b2d 100644 --- a/usr.bin/rsync/symlinks.c +++ b/usr.bin/rsync/symlinks.c @@ -1,4 +1,4 @@ -/* $Id: symlinks.c,v 1.3 2019/02/11 21:41:22 deraadt Exp $ */ +/* $Id: symlinks.c,v 1.4 2019/05/08 20:00:25 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -38,18 +38,18 @@ symlink_read(struct sess *sess, const char *path) for (sz = MAXPATHLEN; ; sz *= 2) { if ((pp = realloc(buf, sz + 1)) == NULL) { - ERR(sess, "realloc"); + ERR("realloc"); free(buf); return NULL; } buf = pp; if ((nsz = readlink(path, buf, sz)) == -1) { - ERR(sess, "%s: readlink", path); + ERR("%s: readlink", path); free(buf); return NULL; } else if (nsz == 0) { - ERRX(sess, "%s: empty link", path); + ERRX("%s: empty link", path); free(buf); return NULL; } else if ((size_t)nsz < sz) @@ -77,18 +77,18 @@ symlinkat_read(struct sess *sess, int fd, const char *path) for (sz = MAXPATHLEN; ; sz *= 2) { if ((pp = realloc(buf, sz + 1)) == NULL) { - ERR(sess, "realloc"); + ERR("realloc"); free(buf); return NULL; } buf = pp; if ((nsz = readlinkat(fd, path, buf, sz)) == -1) { - ERR(sess, "%s: readlinkat", path); + ERR("%s: readlinkat", path); free(buf); return NULL; } else if (nsz == 0) { - ERRX(sess, "%s: empty link", path); + ERRX("%s: empty link", path); free(buf); return NULL; } else if ((size_t)nsz < sz) |