X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=xfer-src%2Fsource-fd.c;h=09b82ccc32009c0f3359fa16c72d47a22b3db3ae;hp=a0ad8873e8152c2d5a0a958c1a89310384e34c4d;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hpb=fd48f3e498442f0cbff5f3606c7c403d0566150e diff --git a/xfer-src/source-fd.c b/xfer-src/source-fd.c index a0ad887..09b82cc 100644 --- a/xfer-src/source-fd.c +++ b/xfer-src/source-fd.c @@ -1,6 +1,6 @@ /* * Amanda, The Advanced Maryland Automatic Network Disk Archiver - * Copyright (c) 2008,2009 Zmanda, Inc. All Rights Reserved. + * Copyright (c) 2008, 2009, 2010 Zmanda, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published @@ -19,8 +19,8 @@ * Sunnyvale, CA 94085, USA, or: http://www.zmanda.com */ -#include "amxfer.h" #include "amanda.h" +#include "amxfer.h" /* * Class declaration @@ -112,7 +112,7 @@ xfer_source_fd( /* we read from a *copy* of this file descriptor, as the downstream element * will close output_fd on EOF */ - elt->output_fd = dup(fd); + g_assert(xfer_element_swap_output_fd(elt, dup(fd)) == -1); return elt; }