GNU bug report logs - #48081
diff on windows doest work with same path but different drives

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: diffutils; Reported by: dreverser@HIDDEN; dated Wed, 28 Apr 2021 14:23:02 UTC; Maintainer for diffutils is bug-diffutils@HIDDEN.

Message received at 48081 <at> debbugs.gnu.org:


Received: (at 48081) by debbugs.gnu.org; 29 Apr 2021 17:00:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 29 13:00:23 2021
Received: from localhost ([127.0.0.1]:56715 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lcA1W-0003iZ-W7
	for submit <at> debbugs.gnu.org; Thu, 29 Apr 2021 13:00:23 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46478)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1lcA1U-0003i5-8U
 for 48081 <at> debbugs.gnu.org; Thu, 29 Apr 2021 13:00:21 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 20F8E160108;
 Thu, 29 Apr 2021 10:00:14 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id RBOms-mDmWkw; Thu, 29 Apr 2021 10:00:13 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3942E1600CC;
 Thu, 29 Apr 2021 10:00:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id eLp7ituUv1-M; Thu, 29 Apr 2021 10:00:13 -0700 (PDT)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 11AB5160091;
 Thu, 29 Apr 2021 10:00:12 -0700 (PDT)
Subject: Re: [bug-diffutils] bug#48081: Acknowledgement (diff on windows doest
 work with same path but different drives)
To: dreverser@HIDDEN
References: <CAHO0KOWVhP7qumzNi_G4UT_9=VJyekxS5tavFpztuJOUuotHYg@HIDDEN>
 <CAHO0KOW=B_SWh2hbccuxc+tz1-kjvk5QSrXZtk5=N3SrkD7MAQ@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <ee329c1c-1545-bb3f-500f-affea00156a3@HIDDEN>
Date: Thu, 29 Apr 2021 10:00:12 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.7.1
MIME-Version: 1.0
In-Reply-To: <CAHO0KOW=B_SWh2hbccuxc+tz1-kjvk5QSrXZtk5=N3SrkD7MAQ@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 48081
Cc: 48081 <at> debbugs.gnu.org, Bruno Haible <bruno@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 4/29/21 8:16 AM, dreverser@HIDDEN wrote:
> so i propose little fix for this
> just edit at the file diffutils-3.7\lib\stat-w32.c
> 
> to "buf->st_dev" after assign "VolumeSerialNumber"
> add disk drive letter

Thanks for the suggestion. Although I don't use MS-Windows I will cc 
this email to someone who knows how stat-w32.c works. Bruno, you can see 
the thread here:

https://bugs.gnu.org/48081




Information forwarded to bug-diffutils@HIDDEN:
bug#48081; Package diffutils. Full text available.

Message received at 48081 <at> debbugs.gnu.org:


Received: (at 48081) by debbugs.gnu.org; 29 Apr 2021 15:16:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 29 11:16:12 2021
Received: from localhost ([127.0.0.1]:56622 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lc8Oi-0001AV-CM
	for submit <at> debbugs.gnu.org; Thu, 29 Apr 2021 11:16:12 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:37619)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dreverser@HIDDEN>) id 1lc8Of-0001A4-Bv
 for 48081 <at> debbugs.gnu.org; Thu, 29 Apr 2021 11:16:10 -0400
Received: by mail-wr1-f41.google.com with SMTP id z6so6041594wrm.4
 for <48081 <at> debbugs.gnu.org>; Thu, 29 Apr 2021 08:16:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=a4wuKyUhWzVl6JJdOxjFgUp/D2amobDEC9Uwb0me1yQ=;
 b=H/qeJaZD7HZyRlxrCW2azqGuXONlzMtwbrG+gbVY6+Fg4Deuz21JBE/OxI4HwD8+N/
 +qGzztkmGLU/Q61ErDvEO1KFGlktUoO5rQDuVe7zYRN3+xfa9+Br4ljhnJQTdUdL0ul6
 2N1u6h8k2t7sFQdU9JtG1j7pjkI9cXSRYfDpKdDXhSZgx6aaFGf7J1WVI+jBgMD3p0RG
 4J7FqHaQf3bE6RccNUo6g9SBxsJoxxujJMEkMtSd34Z6dPlQscEvoZq4Q09MTeKqqI4h
 PA90NF9P9eTYKuI6LRidOPyHQBz5iStKxFn9UmeuZXgFFY8R5YZgpINFij7402AUmyj7
 Wm6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=a4wuKyUhWzVl6JJdOxjFgUp/D2amobDEC9Uwb0me1yQ=;
 b=SyRUslYAUpHgbHozAF6ToXLSetPs8/TFVReFDMuf6/iFS2iLeX+X/BtE5JkbIj/x61
 EKQaWALGfTA6OEbvLTiTfAKKLeaQWwsZutQ6jVw3UYekCeqKmI094Wxwh7bs4PrE1CGo
 vbhX0sNdtdG1el4u8SDtDY3kLZPhqmrlkyBogMXIP8HU/kE58+t+O73RBwYfxpheSG/Q
 51J9osr5vLfIuoKZNIySTF3kfYpVpDg/mqjC7pAOy+rZIv6+DC3zZ36zMhHvpYKzO5cK
 BgG1TFwFOdcWSaDG41+/PHj1McawUKDFTcCohRhgd3IZQor7R1EYSYF2o6KhqzKIpyia
 g3lw==
X-Gm-Message-State: AOAM532QTv00LeS/FIckSrVr1OIjTUWbDD7qthNVpgL7DEzsoTiSpcgF
 jiupbqV5Ykx+P32Hhj/WJFIRDJe7womac9U0CodhpvyG
X-Google-Smtp-Source: ABdhPJylCYuoDc+jGbK5owMswYTyOL0FPaG2tFCz3Dyhh51d16i06zAEwfflJ5Q5zN/IKB5d5mUUgSBs1ZeqKrZq5O0=
X-Received: by 2002:a5d:5741:: with SMTP id q1mr354853wrw.212.1619709363074;
 Thu, 29 Apr 2021 08:16:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a05:6000:128a:0:0:0:0 with HTTP; Thu, 29 Apr 2021 08:16:02
 -0700 (PDT)
From: dreverser@HIDDEN
Date: Thu, 29 Apr 2021 18:16:02 +0300
Message-ID: <CAHO0KOW=B_SWh2hbccuxc+tz1-kjvk5QSrXZtk5=N3SrkD7MAQ@HIDDEN>
Subject: bug#48081: Acknowledgement (diff on windows doest work with same path
 but different drives)
To: 48081 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 48081
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

after little research iam found the issue

iam using many cloned virtual disk drives
which has same serial number (becase was cloned)

diff uses "stat" call to get info about disk
so when i use sync between this disks
i have another mont drive letter  but same serial number, same path
diff -urN D:\path E:\path  give me there no diff, path the same

so i propose little fix for this
just edit at the file diffutils-3.7\lib\stat-w32.c

to "buf->st_dev" after assign "VolumeSerialNumber"
add disk drive letter
this will produce unique "st_dev"
and diff will work for such cases




Information forwarded to bug-diffutils@HIDDEN:
bug#48081; Package diffutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Apr 2021 14:22:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 28 10:22:29 2021
Received: from localhost ([127.0.0.1]:53756 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lbl5A-0003Kr-1N
	for submit <at> debbugs.gnu.org; Wed, 28 Apr 2021 10:22:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:59738)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dreverser@HIDDEN>) id 1lbieL-0005OG-GX
 for submit <at> debbugs.gnu.org; Wed, 28 Apr 2021 07:46:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47600)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dreverser@HIDDEN>)
 id 1lbieK-0000ZE-5o
 for bug-diffutils@HIDDEN; Wed, 28 Apr 2021 07:46:36 -0400
Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:39787)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <dreverser@HIDDEN>)
 id 1lbieI-0005Nk-2M
 for bug-diffutils@HIDDEN; Wed, 28 Apr 2021 07:46:35 -0400
Received: by mail-wm1-x334.google.com with SMTP id
 i21-20020a05600c3555b029012eae2af5d4so9021202wmq.4
 for <bug-diffutils@HIDDEN>; Wed, 28 Apr 2021 04:46:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=TRkVQHPA6GWMJ2LBh/0dbBSIh6XmVBkpB/LHOtfyK74=;
 b=uAoA2wFy/rVHdZ5SqiCUoU8U+mYKF+v0I9cuNRbcpz7VUVLxQ/UjFjc7gQ+bxq6ycK
 WJyg8qzMNBFyYsv2qM8E5hbttYcmM6uBAlg3xssHwfNKyMhayn9B7DSbGlQqVi75Uqr2
 NXjiTviH3y5CJZOyEG+TslAF+I2InEWWsiDf9ODKbqOn0GsQpkMDBZEgAVrm+wuKNAG1
 kUivmLI5XxGvx1idifvbc7elA+PKNDTdDCFrANba/3dxEIm1D/rSuu41jR14x6IZtYxP
 tp0TFBCmq+zA0aR758zruy4dsc/L86Ypl303YhEJAnl7uTI/wYjBaQk3uvEKSlVZGM61
 pHLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=TRkVQHPA6GWMJ2LBh/0dbBSIh6XmVBkpB/LHOtfyK74=;
 b=UA9W1CGxscGI5HF3oidlSUEXAa/wFWLxS172uDvrKoJQmLfY6KAZ8woL1I9WPMvKi8
 KwLVZ9wsEgXBjchG7Ps0o+5i5AqmIAKVNryEB2jMq6zHKqy/w8onCe+9iDF63ILyA78H
 bEgeFmGbfMG86di+ix0gibLm2cAbv43DapOB58rO+TvPRG0ClxNuM76b9A3dtQZNwK7f
 d2Y012aZqvWkFDc9r4iQETeJtNyorQ3d1HjQjFrjS6DrTP9Z+LAUK5GRCtmM0vkkEe8t
 +amdctt+/ClqJSbk0/RenLLMBF0HrlpCrbPz90fF45V5Vt7Gq3knpDtarNr4lNcgz2DC
 V4iQ==
X-Gm-Message-State: AOAM530aIlIzQ4ncTwDwIt6eFVctp/sL6PezG748msGAhaPC9/sYRvBs
 SRYCIt38t4qw6xXGb29NIMkPCaMatfD7ICXiHhQV9Vrn
X-Google-Smtp-Source: ABdhPJyfLrEd6rsPM1+KcYOFxq4aOWOt5qD1MOoUhDv5zJ/vM7QtfEJGTY9eaiwHtqyQKuWpLssLe58deVZ4p53UhdI=
X-Received: by 2002:a1c:1dca:: with SMTP id d193mr4044273wmd.148.1619610391557; 
 Wed, 28 Apr 2021 04:46:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a05:6000:128a:0:0:0:0 with HTTP; Wed, 28 Apr 2021 04:46:30
 -0700 (PDT)
From: dreverser@HIDDEN
Date: Wed, 28 Apr 2021 14:46:30 +0300
Message-ID: <CAHO0KOWVhP7qumzNi_G4UT_9=VJyekxS5tavFpztuJOUuotHYg@HIDDEN>
Subject: diff on windows doest work with same path but different drives
To: bug-diffutils@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::334;
 envelope-from=dreverser@HIDDEN; helo=mail-wm1-x334.google.com
X-Spam_score_int: -6
X-Spam_score: -0.7
X-Spam_bar: /
X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 28 Apr 2021 10:22:27 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

diff on windows doest work with same path but different drives

diff -urN D:\path1\ D:\path2  - works
diff -urN E:\path1\ D:\path1  - doest works, empty output

early version of diff was report "recursive directory loop"
but currently version of diff wholly empty output




Acknowledgement sent to dreverser@HIDDEN:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#48081; Package diffutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 29 Apr 2021 17:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.