From: Colin Walters Date: Mon, 15 May 2017 21:24:52 +0000 (-0400) Subject: bin/cookies: Delete dead tmpfile code in cookie list command X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~36^2~73 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=db00c9591f7425c9098f06b818f6c3b4b7c2f352;p=ostree.git bin/cookies: Delete dead tmpfile code in cookie list command This was a copy-paste-o. Closes: #871 Approved by: jlebon --- diff --git a/src/ostree/ot-remote-cookie-util.c b/src/ostree/ot-remote-cookie-util.c index e3ca9eac..b80c825c 100644 --- a/src/ostree/ot-remote-cookie-util.c +++ b/src/ostree/ot-remote-cookie-util.c @@ -279,22 +279,11 @@ gboolean ot_list_cookies_at (int dfd, const char *jar_path, GError **error) { #ifdef HAVE_LIBCURL - glnx_fd_close int tempfile_fd = -1; - g_autofree char *tempfile_path = NULL; - g_autofree char *dnbuf = NULL; - const char *dn = NULL; g_autoptr(OtCookieParser) parser = NULL; if (!ot_parse_cookies_at (AT_FDCWD, jar_path, &parser, NULL, error)) return FALSE; - dnbuf = dirname (g_strdup (jar_path)); - dn = dnbuf; - if (!glnx_open_tmpfile_linkable_at (AT_FDCWD, dn, O_WRONLY | O_CLOEXEC, - &tempfile_fd, &tempfile_path, - error)) - return FALSE; - while (ot_parse_cookies_next (parser)) { g_autoptr(GDateTime) expires = g_date_time_new_from_unix_utc (parser->expiration);