From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1866 invoked by alias); 25 Jan 2018 12:45:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 1853 invoked by uid 89); 25 Jan 2018 12:45:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*u:6.1, H*UA:6.1, site, USB X-HELO: mail-io0-f179.google.com Received: from mail-io0-f179.google.com (HELO mail-io0-f179.google.com) (209.85.223.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Jan 2018 12:45:54 +0000 Received: by mail-io0-f179.google.com with SMTP id f34so8499365ioi.13 for ; Thu, 25 Jan 2018 04:45:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pu/nbp1AZCGmShvgJUyBejrQCdCH12tS+FmfkSzHbq0=; b=NIYwECQpt7MTmsXe1OQ2aT8Bt5wUMi4eTdIAjJm+KsyqnyfViSyO+m1SqEAz4vpZsD hXsCj6CDFVl5f9UxSRxyengUC/S86plkcSmvjIMW3OHw4vI/zm1prt+nzOGkfdx7i+qV KjxeZ3YUzxTIcuxb+IZtHDItmX2QOXYYLQm9QXFyH0cqLTwIGhi7BSAlADQ7kmP6u4/B yscnMNHF/3eO6NrJZKbJWo9J32fughfm0YpiyWOoOuASN9HJKqT/A8Lw5R/7eg+CnfVN wET7vl1/eCgKw0HweOoNItBeEeAyFTyK2th6wc3s/n9qZjmDPLLOjxwGrml27+7t2sUi +C4Q== X-Gm-Message-State: AKwxytf8/1BBPsrqNnU61Vlz3/Y2PE8J9ahl3OUx8TX0W6+I9gKBIXT5 VbJu9HX09Qk7uJjksQw7Rh+Pcg== X-Google-Smtp-Source: AH8x225ZpDMJEIctCaVKODn3sYJiFsmzIac3pHmo6YktgVKENOZlGXLBtoIc7vKhU7zBR897DFfP5g== X-Received: by 10.107.170.4 with SMTP id t4mr12172304ioe.98.1516884352038; Thu, 25 Jan 2018 04:45:52 -0800 (PST) Received: from [192.168.81.79] (59-124-181-71.HINET-IP.hinet.net. [59.124.181.71]) by smtp.googlemail.com with ESMTPSA id 12sm943139itm.41.2018.01.25.04.45.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 04:45:51 -0800 (PST) From: Marco Atzeri Subject: Re: Ejecting a USB drive using Cygwin (sync)? To: "cygwin@cygwin.com" References: <5a67c70d.89349d0a.83b53.40f2@mx.google.com> Message-ID: Date: Thu, 25 Jan 2018 12:45:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <5a67c70d.89349d0a.83b53.40f2@mx.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-01/txt/msg00252.txt.bz2 On 24/01/2018 07:36, Steven Penny wrote: > On Tue, 23 Jan 2018 14:13:24, Brian Inglis wrote: >> I found the following utility works well without elevation - Windows >> code from >> http://www.leapsecond.com/tools/eject.{c,exe}: the original code location is reported >> >> // eject -- Allow safe removal of USB thumb drive. >> // - Command line tool to flush/dismount/eject USB drive. >> // - Simpler than mouse clicking through taskbar "Safely Remove >> Hardware" icon. >> // - Usable in batch file scripts. >> // 02-Nov-2012 Tom Van Baak (tvb) www.LeapSecond.com/tools >> ... The proper copyright is reported, the "..." are clearly showing an extract posted in line. >> // Per MSDN, follow procedure for safe removal of USB drive. > > No, this is not the code from that site. The code is similar, but I see > you have > at least removed some empty lines. If you are going to do so, you need to > clearly present said changes to the community - something like "adapted > from > http://..." or "modified from http://...", etc. > > Software copyright - even open source license is serious, and you should > give it > due respect. > he was not providing a full functional code, not claiming ownership, just highlighting the key calls. It seems to me that you are barking to the wrong tree. Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple