X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=g8eCdWy+/t0uZSK3 yKHfdgETrxyTElz1PI0lv2/RWovr1l6fv9Re2M+42C7xT24ztKPvMfgnaAjeOSWi iaWkVllkvVH6t9amAM4Bt79SJ6Y0+zpHmaTlmb6tvLh6VP5dfKq1GH0hihebJaYV dw2LIgSjsS+Z9QMrTsoISF4aMAs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:subject:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Jvyjk3/jKTlgfT8PEnYTOu axP0o=; b=ROruA6mqACz+AbQo8t4ceNsaW39L7vzWjluEtOlPmFuIwrzaI8dMvK D/viSv6Hb92uByvxAWticorxyBx6ZPPzp+0hGKchpv+b4p4uFgOEdIIpvgYh+/aE Ny/42ksT5xL5mPhDyeZxIGjQ7QDdWlSLjds7ayJUMirC+5xu+pJIw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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) From: Marco Atzeri Subject: Re: Ejecting a USB drive using Cygwin (sync)? To: "cygwin AT cygwin DOT com" References: <5a67c70d DOT 89349d0a DOT 83b53 DOT 40f2 AT mx DOT google DOT com> Message-ID: Date: Thu, 25 Jan 2018 20:45:42 +0800 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 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