From: didg Date: Mon, 14 May 2007 18:25:27 +0000 (+0000) Subject: copyfile: no need for noadouble if there's no source resource fork it doesn't try... X-Git-Tag: netatalk-2-0-4-beta1~33 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=6904cc92d9e15ea29bce8baab7f90e8e97bdb8fb;hp=7d5dc8c62171380b6e936a8330c9bd22f6de605a;p=netatalk.git copyfile: no need for noadouble if there's no source resource fork it doesn't try to create one for dest --- diff --git a/etc/afpd/file.c b/etc/afpd/file.c index 8b9d431b..510d64e7 100644 --- a/etc/afpd/file.c +++ b/etc/afpd/file.c @@ -1,5 +1,5 @@ /* - * $Id: file.c,v 1.92.2.2.2.31.2.20 2006-11-13 15:30:51 didg Exp $ + * $Id: file.c,v 1.92.2.2.2.31.2.21 2007-05-14 18:25:27 didg Exp $ * * Copyright (c) 1990,1993 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -1454,7 +1454,7 @@ struct adouble *adp; st.st_mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; } - if (ad_open(dst , adflags | noadouble, O_RDWR|O_CREAT|O_EXCL, st.st_mode, &add) < 0) { + if (ad_open(dst , adflags, O_RDWR|O_CREAT|O_EXCL, st.st_mode, &add) < 0) { ret_err = errno; ad_close( adp, adflags ); if (EEXIST != ret_err) {